Returns the number of peers currently connected to the client.
curl --request POST \ --url https://rpc.quai.network/cyprus1/ \ --header 'Content-Type: application/json' \ --data '{ "jsonrpc": "2.0", "method": "net_peerCount", "params": [], "id": 1 }'
{ "jsonrpc": "2.0", "result": "0x3", "id": 1 }
The response is of type object.
object
Was this page helpful?