Skip to main content

getconnectioncount RPC Method

Returns the connection count to other nodes.

Updated on
Oct 4, 2023

getconnectioncount RPC Method

Parameters

This method does not accept any parameters

Returns

n
The total number of connections to other nodes, both inbound and outbound
error
The error message, if any
Request
1
curl https://docs-demo.btc.quiknode.pro/ \
2
-X POST \
3
-H "Content-Type: application/json" \
4
--data '{ "method": "getconnectioncount" }'
5
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free