Skip to content

net_peerCount


Returns the number of peers currently connected to the client. In zq2, always returns "0x0".

Example Request

 curl -d '{
    "id": "1",
    "jsonrpc": "2.0",
    "method": "net_peerCount",
    "params": [
 ]}' -H "Content-Type: application/json" -X POST "https://api.zq2-prototestnet.zilliqa.com/"

Example response

{"jsonrpc":"2.0","result":"0x0","id":"1"}

Arguments

Parameter Type Required Description
id string Required "1"
jsonrpc string Required "2.0"
method string Required "net_peerCount"
params array Requred can be anything