net_peerCount

返回当前节点所连接的peer节点数量。

参数
无参数

返回值
QUANTITY - 当前节点所连接的peer节点数量

示例

curl -X POST 'https://api.shasta.trongrid.io/jsonrpc' --data '{"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":64}'

结果

{"jsonrpc":"2.0","id":64,"result":"0x9"}