Home

Get Connection Count

POST
https://ont.nownodes.io/

Authorizations

ApiKeyAuthApiKeyAuth

api-key string

NOWNodes API key passed in the api-key header.

Returns the number of active peer connections currently connected to this ONT node. This includes both incoming and outgoing connections to other nodes in the network.

Body

application/json
jsonrpcstringrequired

The JSON-RPC protocol version. Must be "2.0" for JSON-RPC 2.0 specification compliance.

methodstringrequired

The RPC method name. For this operation, it must be "getconnectioncount".

paramsarrayrequired

An array of method parameters. This method takes no parameters, so an empty array is required.

idintegerrequired

A unique identifier for the request, used to correlate the response with the request.

Response

200OK

Successful response containing the number of active connections.