net_peerCount-polygon

Returns number of peers currently connected to the client.

Parameters

  • No parameters are needed.
curl https://polygon-mainnet-archive.allthatnode.com/8U3JLUhzIDg3GShvy9hkCCSYkLGc11kj \
--request POST \
--header "Content-Type: application/json" \
--data '{
    "jsonrpc":"2.0",
    "id":1,
    "method":"net_peerCount",
    "params":[]
}'

Returns

  • QUANTITY - integer of the number of connected peers.
{"jsonrpc":"2.0","id":1,"result":"0xbe"}

Try Yourself

Language
Click Try It! to start a request and see the response here!