curl --request POST \
--url https://rpc.mainnet.near.org/network_info \
--header 'Content-Type: application/json' \
--data '
{
"id": "<string>",
"jsonrpc": "<string>",
"method": "network_info",
"params": null
}
'{
"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>"
}Queries the current state of node network connections. This includes information about active peers, transmitted data, known producers, etc.
curl --request POST \
--url https://rpc.mainnet.near.org/network_info \
--header 'Content-Type: application/json' \
--data '
{
"id": "<string>",
"jsonrpc": "<string>",
"method": "network_info",
"params": null
}
'{
"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>"
}