Net_peerCount

net_peerCount

post

Returns the number of peers currently connected to the client.

Authorizations
api-keystringRequired
Body
jsonrpcstringRequiredExample: 2.0
methodstring · enumRequiredExample: net_peerCountPossible values:
paramsarrayRequired

This method takes no parameters.

idintegerRequiredExample: 1
Responses
chevron-right
200

JSON-RPC response with the number of connected peers

application/json
jsonrpcstringRequiredExample: 2.0
idintegerRequiredExample: 1
resultstringRequired

The number of peers currently connected, as a hexadecimal string.

Example: 0x8
post
/
200

JSON-RPC response with the number of connected peers

Last updated