net_peerCount
网络: Ethereum Sepolia · 测试网 · Chain ID 11155111(0xaa36a7)
计为 1 个 Request。 计费规则见 Request Counting。
描述
返回客户端当前连接的节点数。
参数
无
请求
{
"jsonrpc": "2.0",
"method": "net_peerCount",
"params": [],
"id": 1
}代码示例
curl -X POST https://ethereum-sepolia-rpc.blockreq.com/v1/rpc/public \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":1}'