Updated on 2024-11-14 GMT+08:00

net_listening

Introduction

This API returns true if the client is actively listening for network connections. It consumes 130 CUs.

Parameter Description

This method does not accept any parameters.

Return Value

true is returned if the client is actively listening for network connections, or false is returned.

Request

curl https://your-http-endpoint/v1/<API-KEY> \
  -X POST \
  -H "Content-Type: application/json" \
  --data '{"method":"net_listening","params":[],"id":1,"jsonrpc":"2.0"}'