Skip to main content
Version: Next

net_peerCount

Returns the number of peers currently connected to the client.

Parameters (by position)​

This method does not accept any parameters.

Result​

Peer count string

hex encoded unsigned integer

Match pattern: ^0x(0|[1-9a-f][0-9a-f]*)$


Examples​

net_peerCount example

Request​

{
"params": []
}

Response​

"0x2"