net_listening
Returns whether the node is listening for network connections.
Ethereum JSON-RPC reference · All supported methods
Parameters
No parameters. Send an empty params array.
Return value
true if the node is listening, otherwise false.
Example
Replace <gateway-url> with your gateway base URL and <service-url> with the chain’s service path, such as service/ethereum.
sh
curl -X POST "<gateway-url>/<service-url>" \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","id":1,"method":"net_listening","params":[]}'Illustrative response; values depend on the selected network and request:
json
{
"jsonrpc": "2.0",
"id": 1,
"result": true
}