Skip to main content

network_info RPC Method

Returns the current state of node network connections such as active peers, transmitted data, etc.

Updated on
Oct 4, 2023

network_info RPC Method

Parameters

This method does not accept any parameters

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
Request
1
curl https://docs-demo.near-mainnet.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{"jsonrpc": "2.0", "method": "network_info", "params": [],"id":1}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free