net_listening
Checks if the Ethereum client is actively listening for network connections
Request
Examples
curl --request POST \
--url https://rpc.xone.org \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "net_listening"
}
'Response
200 OK
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xb1770efb14906e509893b6190359658208ae64d0c56e22f748a1b0869885559e"
}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
RReturns true if the client is listening for network connections, false otherwise.| Name | Type | Description |
|---|---|---|
| Parameters | object | |
| id | integer | |
| jsonrpc | string | |
| result | boolean |