Contents

net_peerCount RPC method

Parameters:

  1. None

Returns:

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

Code Examples:

curl http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":67}'
Ready to try QuickNode? Start your 7-day free trial