net_peerCount

Parameters

None

Returns

  • QUANTITY - Integer value representing the number of connected peers.

Example

Request

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

Response

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