net_listening - Ethereum
Shows the true boolean result if the client listens actively for network connections
How to Use the net_listening Method
Parameters
No parameters.
What you receive
Boolean - true when the client is listening, in other cases returns false.
Sample
Here is a typical appliance example.
Call
curl https://eth-mainnet.rpcfast.com/?api_key=<key> \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"net_listening","params":[],"id":67}'
Outcome
{
"jsonrpc": "2.0",
"id": 67,
"result": true
}
Last updated