Returns true
if the client is actively listening for network connections.
NOTE: This API is effective after Klaytn v1.8.0
Supported on Klaytn (mainnet) only.
Parameters
Request
None
Result
Type | Description |
---|---|
Boolean | true when listening, otherwise false . |
API Endpoint
The format of a Klaytn API endpoint is
https://open-platform.nodereal.io/{{apiKey}}/klaytn/
Here is an example:
https://open-platform.nodereal.io/4c0a1c23661a4e26bcbcwed461e34ea9/klaytn/
Example
// Request
curl https://open-platform.nodereal.io/{{apiKey}}/klaytn/ \
-X POST \
-H "Content-Type: application/json" \
--data '{"jsonrpc":"2.0","method":"net_listening","params":[],"id":67}'
// Result
{
"id":67,
"jsonrpc":"2.0",
"result":true
}