net_peerCount
描述:返回当前客户端所连接的对端节点数量。
parameter
无
return
数据类型 | 备注 |
---|---|
String | 整数,所连接对端节点旳数量 |
example
Request:
curl -X POST \
http://127.0.0.1:8283 \
-H 'Content-Type: application/json' \
-d '{"jsonrpc": "2.0", "id": 1, "method": "net_peerCount", "params": []}'
Response:
{
"jsonrpc": "2.0",
"id": 1,
"result": "0x2"
}