Last updated 1 month ago
Returns the number of connections to other nodes.
This method will use 10 Compute Units.
10
curl https://mainnet.bitcoin.validationcloud.io/v1/<YOUR_API_KEY_HERE> \ -X POST \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "1.0", "id": "curltest", "method": "getconnectioncount", "params": [] }'
curl https://testnet.bitcoin.validationcloud.io/v1/<YOUR_API_KEY_HERE> \ -X POST \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "1.0", "id": "curltest", "method": "getconnectioncount", "params": [] }'
n
numeric
The connection count