net
net_listening
Returns true if the node is actively listening for network connections.
Returns true if the node is actively listening for network connections.
Parameters
| # | Type | Description |
|---|---|---|
| — | — | No parameters required. |
Returns
| Type | Description |
|---|---|
boolean | true if the node is listening for connections, false otherwise. |
Example
curl -s -X POST https://rpc.pulsechain.box \
-H "Content-Type: application/json" \
-d '{
"jsonrpc": "2.0",
"method": "net_listening",
"params": [],
"id": 1
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": true
}
TRY IT
Notes
- A healthy node should always return
true. - If the node returns
false, it may be in the process of starting up or experiencing network issues.
