Skip to main content

net_peerCount RPC Method

Returns number of peers currently connected to the client.

Updated on
Apr 29, 2026

To use the net_peerCount method on the C-Chain, ensure that the end of your URL includes ext/bc/C/rpc.

Parameters

This method does not accept any parameters

Returns

result
integer

The integer of the number of connected peers encoded as hexadecimal

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": "0x32"
5
}
1
{
2
"jsonrpc": "2.0",
3
"id": 1,
4
"result": "0x32"
5
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free