Skip to main content
POST
/
network_info
cURL
curl --request POST \
  --url https://api.example.com/network_info \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": "dontcare",
  "jsonrpc": "2.0"
}
'
{
  "result": {
    "active_peers": [
      {
        "id": "<string>",
        "account_id": "<string>",
        "addr": "<string>"
      }
    ],
    "known_producers": [
      {
        "account_id": "<string>",
        "peer_id": "<string>",
        "addr": "<string>"
      }
    ],
    "num_active_peers": 1,
    "peer_max_count": 1,
    "received_bytes_per_sec": 1,
    "sent_bytes_per_sec": 1
  },
  "id": "<string>",
  "jsonrpc": "<string>"
}

Documentation Index

Fetch the complete documentation index at: https://docs.near.org/llms.txt

Use this file to discover all available pages before exploring further.

Body

application/json
method
enum<string>
required
Available options:
network_info
params
any | null
required
Available options:
null
id
string
default:dontcare

JSON-RPC request id. Auto-populated; can be any string.

jsonrpc
enum<string>
default:2.0

JSON-RPC protocol version. Always 2.0.

Available options:
2.0

Response

200 - application/json
result
object
required
id
string
required
jsonrpc
string
required