net_peerCount
Retrieves the number of peers currently connected to the Ethereum client
Request
Examples
curl https://rpc.xone.org \
-X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":67}'
'
Response
200 OK
{
"jsonrpc": "2.0",
"id": 67,
"result": "0x8"
}
Request params
Name | Type | Description |
---|---|---|
id | integer | Request identifier |
jsonrpc | string | JSON-RPC version |
method | string | API method name |
Parameters | This method does not accept any parameters. |
Response
200
The number of peers connected to the client, returned as a hexadecimal string.Name | Type | Description |
---|---|---|
Parameters | object | |
id | integer | |
jsonrpc | string | |
result | string |