Skip to main content

Network Info

network_info request type

This endpoint allows you to get network information from the NEAR node, including active peers and known producers.

Network
FastNear API keyNo saved key
Get API key
Endpointhttps://rpc.mainnet.fastnear.com
Authnone detected
Live Response

Responses from the selected endpoint appear here after you run a request.

Live response output will appear here after you run a request.

Request reference

application/json

This operation accepts a JSON-RPC body over POST to /.

Required request inputs: yes

{
  "jsonrpc": "2.0",
  "id": "fastnear",
  "method": "network_info",
  "params": []
}

Request schema

object
requires jsonrpc, id, method, params
jsonrpc *string
2.0
id *string

Example: fastnear

method *string
network_info
params *array

Empty array as this method takes no parameters

Example:

Response reference

200 application/json

Successful response

Response schema

objectJsonRpcResponse
requires jsonrpc, id
jsonrpc *string
2.0
id *one of
stringnumber
resultobject
requires active_peers, num_active_peers, peer_max_count, sent_bytes_per_sec, received_bytes_per_sec, known_producers
active_peers *array
itemsobject
known_producers *array

Accounts of known block and chunk producers from routing table.

itemsobject
num_active_peers *integer
peer_max_count *integer
received_bytes_per_sec *integer
sent_bytes_per_sec *integer
errorobject
codeinteger
messagestring
dataobject