Returns the current state of node network connections such as active peers, transmitted data, etc.
Supported on NEAR (mainnet) only.
Parameters
none
Returns
active_peers- The information about the active peerid- The id of the active peeraddr- The address of the active peersaccount_id- The identifier for the account
num_active_peers- The number of active peerspeer_max_count- The maximum count of the peers that can be connectedsent_bytes_per_sec- The amount of bytes sent per secondreceived_bytes_per_sec- The amount of bytes recieved per secondknown_producers- The known producersaccount_id- The identifier for the accountaddr- The peer addresspeer_id- The account id of the peer
API Endpoint
The format of a Near API endpoint is
https://open-platform.nodereal.io/{{apiKey}}/near/
Here is an example:
https://open-platform.nodereal.io/4c0a1c23661a4e26bcbcwed461e34ea9/near/
Example
Request
curl https://open-platform.nodereal.io/{{apiKey}}/near/ \
-X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc": "2.0", "method": "network_info", "params": [],"id":1}'
Result
