getconnectioncount - Bitcoin
getconnectioncount. Returns the number of active peer connections currently established by the node.
getconnectioncount - bitcoin [Value: 20CU]
Returns the number of active connections to other nodes.
- Get number of peer connections
- Monitor node's network status
- Check active peer count
- Node must be running
- Only counts active connections
- Depends on node's connectivity
Unlock Access to 100+ chains
Boost your app's speed and reliability with dRPC - get your access API key
Request
Examples
curl https://bitcoin.drpc.org \
-X POST \
-H "Content-Type: application/json" \
--data '{ "method": "getconnectioncount" }'Response
200
{
"jsonrpc": "2.0",
"id": "curltest",
"result": 8
}
idinteger
jsonrpcstring
methodstring
200
object
idinteger
jsonrpcstring
resultnumeric
object
nnumeric
The total number of connections to other nodes, both inbound and outbound.
errorstring
The error message, if any.