net_listening

zkLink Nova chain RPC Methods & API Documentation


net_listening RPC method

Returns

net_listening returns true when the client is actively listening for network connections, otherwise false

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

net_listening always returns true when using CHAINNODES.ORG (opens in a new tab)

Parameters

None

🔌 To use net_listening you must be connected to a blockchain node.

Request

POST https://<network>.chainnodes.org/YOUR-API-KEY

Example

  • HTTPS POST Request with a JSON RPC call in the body

  • Replace YOUR-API-KEY with the API key from your CHAINNODES.ORG Dashboard

  • You can use a different supported network by replacing zklink-nova-mainnet

curl https://zklink-nova-mainnet.chainnodes.org/YOUR-API-KEY \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"net_listening","params":[],"id":1}'

💡 Confusing?

Ask our experienced blockchain developers in Telegram