network_info

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 peer
    • id- The id of the active peer
    • addr- The address of the active peers
    • account_id- The identifier for the account
  • num_active_peers- The number of active peers
  • peer_max_count- The maximum count of the peers that can be connected
  • sent_bytes_per_sec- The amount of bytes sent per second
  • received_bytes_per_sec- The amount of bytes recieved per second
  • known_producers- The known producers
    • account_id- The identifier for the account
    • addr- The peer address
    • peer_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