Portal
Search…
net_peerCount
Returns number of peers connected to node
1
web3.net.peerCount
Copied!

Parameters

none

Returns

The number of other Ethereum nodes connected to the node.

Example

1
var peerCount = web3.net.peerCount;
2
console.log(peerCount);
3
> 5
Copied!
Last modified 9mo ago
Copy link