NEAR Protocol RPC: Network Information (1.0.0)

Retrieve information about the NEAR Protocol network and connected peers

Download OpenAPI description
Languages
Servers
Mainnet
https://rpc.mainnet.fastnear.com/
Testnet
https://rpc.testnet.fastnear.com/

Get network information

Request

Retrieves information about the network and connected peers including active connections, peer addresses, and network configuration

Bodyapplication/jsonrequired
jsonrpcstringrequired
Value"2.0"
idstringrequired
Example: "fastnear"
methodstringrequired
Value"network_info"
paramsArray of arrays<= 0 itemsrequired

Empty array as this method takes no parameters

Example: []
curl -i -X POST \
  https://rpc.mainnet.fastnear.com/ \
  -H 'Content-Type: application/json' \
  -d '{
    "jsonrpc": "2.0",
    "id": "fastnear",
    "method": "network_info",
    "params": []
  }'

Responses

Successful response

Bodyapplication/json
jsonrpcstringrequired
Value"2.0"
idstring or numberrequired
One of:
string
resultobject
errorobject
Response
application/json
{ "jsonrpc": "2.0", "id": "string", "result": { "active_peers": [], "known_producers": [], "num_active_peers": 0, "peer_max_count": 0, "received_bytes_per_sec": 0, "sent_bytes_per_sec": 0 }, "error": { "code": 0, "message": "string", "data": {} } }