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
This method accepts no parameters.
Response Body
true if listening
Code Examples
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
}'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);Related Methods
net_peerCount- Get peer count