HomeGuidesAPI ReferenceChangelog
GuidesAPI ReferenceCommunityDiscordBlogFAQBug BountyAnnouncementsChange Log
API Reference

net_peerCount

Returns number of peers currently connected to the client.

Parameters
None

Returns
QUANTITY - integer of the number of connected peers.

Example

curl -X POST '47.95.206.44:50545/jsonrpc' --data '{"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":64}'

Result

{"jsonrpc":"2.0","id":64,"result":"0x9"}