Marketplace has launched, further enabling blockchain developers! Learn more

Contents

net_listening RPC method

Parameters:

  1. None

Returns:

  1. Result - (Boolean) true when listening, otherwise false.

Code Examples:

(async () => {
  const provider = new ethers.providers.JsonRpcProvider(
    "http://sample-endpoint-name.network.quiknode.pro/token-goes-here/ext/bc/C/rpc"
  );
  const listening = await provider.send("net_listening");
  console.log(listening);
})();
Ready to get started? Create a free account