powered by
net_peerCount returns the number of peers currently connected to the client.
net_peerCount
net_peerCount()
Integer - Number of connected peers.
Other net functions: gethr, net_listening, net_version
gethr
net_listening
net_version
# NOT RUN { net_peerCount() # } # NOT RUN { # }
Run the code above in your browser using DataLab