📝 Share Your Feedback on Twitter and Claim 1M Free GetBlock Requests

avax
Avalanche (AVAX)

Method: POST net_peerCount

dropdown

方法 RPC net_peerCount 例如 Avalanche (AVAX)

POST net_peerCount

返回当前连接到客户端的同行数量。

Parameters

-

Request

curl --location --request POST 'https://avax.getblock.io/mainnet/ext/bc/C/rpc' \
--header 'x-api-key: YOUR-API-KEY' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "net_peerCount",
"params": [],
"id": "getblock.io"}'


Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": "0x0"
}