Skip to main content

net_peerCount

Overview

The "net_peerCount" returns the number of peers currently connected to the client.

Request

curl --request POST \
--url https://ethereum-mainnet-geth-archive.node.coinapi.io \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'X-CoinAPI-Key: 73034021-THIS-IS-SAMPLE-KEY' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "net_peerCount"
}'

Request Parameters

Response

{
"jsonrpc": "2.0",
"id": 1,
"result": "0x41"
}