跳转到内容

net_peerCount

此内容尚不支持你的语言。

Returns the number of peers currently connected to the client.

None

{
"jsonrpc": "2.0",
"method": "net_peerCount",
"params": [],
"id": 1
}
Terminal window
curl -X POST https://eth-mainnet.blockreq.com/v1/rpc/public \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":1}'