net_peerCount

Description

Returns the number of peers currently connected to the client.

Counts as 1 request. See Request Counting.

Parameters

None

Request

{ "jsonrpc": "2.0", "method": "net_peerCount", "params": [], "id": 1 }

Code Examples

curl -X POST https://base-rpc.blockreq.com/v1/rpc/public \ -H "Content-Type: application/json" \ -d '{"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":1}'

Try It