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"}