Docs
Supported ChainsFlow EVM GatewayJSON-RPC APINetwork Methods

net_listening - Flow EVM RPC Method

Check if node is listening for connections on Flow EVM Gateway.

Returns true if client is actively listening for network connections on Flow EVM Gateway.

Request Parameters

Request

This method accepts no parameters.

Response Body

Response
resultBoolean

true if listening

Code Examples

Bash
curl -X POST https://api-flow-evm-gateway-mainnet.n.dwellir.com/YOUR_API_KEY \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "net_listening",
    "params": [],
    "id": 1
  }'
JavaScript
import { JsonRpcProvider } from 'ethers';

const provider = new JsonRpcProvider('https://api-flow-evm-gateway-mainnet.n.dwellir.com/YOUR_API_KEY');

const listening = await provider.send('net_listening', []);
console.log('Node listening:', listening);

On this page