bitcoind.app
CommandsGuidesContact ↗
Home/Network/getconnectioncount
Network

getconnectioncount

Returns the number of connections to other nodes.

Returns

numberThe connection count

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"getconnectioncount","params":[]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

125
← Previous
getaddednodeinfo
Next →
getnettotals

More Network Commands

addnodeclearbanneddisconnectnodegetaddednodeinfogetnettotalsgetnetworkinfo

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗