Skip to content

net_listening ​

served · same as reth

Tells if the node accepts peer connections.

When to use ​

Use it to check if the peer-to-peer part of the node runs.

Example ​

bash
curl -s -X POST -H 'Content-Type: application/json' \
  --data '{"jsonrpc": "2.0", "id": 1, "method": "net_listening", "params": []}' \
  http://127.0.0.1:8547
json
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "net_listening",
  "params": []
}

Response ​

Live mainnet, 2026-10-14. Checked against reth 2.7: equal.

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": true
}

Full response

Parameters ​

None.

Returns ​

true with --p2p, else false.

Compared with reth ​

The live example above gives the same answer on Cinder and on reth 2.7.

net_peerCount.

Schema (OpenRPC) ​

Result: boolean
json
{
  "type": "boolean"
}