Contents

net_peerCount RPC method

Parameters:

  1. None

Returns:

  1. Result - Integer of the number of connected peers encoded as a hexadecimal.

Code Examples:

require 'ethereum.rb'
client = Ethereum::HttpClient.new('http://sample-endpoint-name.network.quiknode.pro/token-goes-here/')
response = client.net_peer_count
puts response["result"]
Ready to try QuickNode? Start your 7-day free trial