简体中文
cURL
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 }
Returns the number of peers currently connected to the client.
2.0
"2.0"
The name of the method to be invoked.
net_peerCount
"net_peerCount"
net_peerCount does not require any params.
[]
A unique identifier for the request.
1
Successful response
The number of connected peers.
"0x3"
此页面对您有帮助吗?