🔢 net_peerCount - Base Chain
Developers can use this method to check their node's connectivity and functionality. The peer count confirms that a Base node is properly connected to the network and able to receive blockchain updates.
Returns
Peer count
- the number of peers currently connected to the node encoded as hexadecimal
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x24"
}
Parameters
None
Request
Need RPC API keys?
Get 12.5M archival requests for free today.
POST https://base-mainnet.chainnodes.org/YOUR-API-KEY
Example
- HTTPS POST Request with a JSON RPC call in the body
- Replace YOUR-API-KEY with the API key from your Chainnodes.org Dashboard
- You can use a different supported network by replacing
base-mainnet
curl https://base-mainnet.chainnodes.org/YOUR-API-KEY \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":1}'