Get the number of connected peers
POST
Authorizations
ApiKeyAuthApiKeyAuthapi-key string
NOWNodes API key passed in the api-key header.
Returns the number of peers currently connected to the client.
Reports the peer count of whichever node served the request. Requests are balanced across a pool, so the value varies between calls and is not a property of the endpoint as a whole.
Body
application/json
jsonrpcstringrequiredmethodstringnet_peerCountrequiredparamsarrayrequiredThis method takes no parameters.
idintegerrequiredResponse
200OK
JSON-RPC response with the number of connected peers
405Method Not Allowed
Method not served by this endpoint. The body is the plain-text string
Method Not Allowed, not JSON.
422Unprocessable Entity
Missing API key - the api-key header was absent. The body is the
plain-text string Missing API_key, not JSON.