Skip to content

GetNumPeers


Warning

Whilst this API is implemented in this version of Zilliqa 2.0, the implementation is not yet complete. Use with caution!

Returns total number of peers including committee peers.

Example Request

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

Example response

{ "id": "1", "jsonrpc": "2.0", "result": 600 }

Arguments

Parameter Type Required Description
id string Required "1"
jsonrpc string Required "2.0"
method string Required "GetNumPeers"
params string Required Empty string ""