Skip to main content
POST
eth_getTransactionByBlockHashAndIndex
curl --request POST \
  --url https://nd-422-757-666.p2pify.com/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_getTransactionByBlockHashAndIndex",
  "params": [
    "0xe5154e40a873257082e257c405d28bf2cc58d80629cc5468d2f7e6dba3c4e7db",
    "0x3D"
  ]
}
'
{
  "jsonrpc": "<string>",
  "id": 123,
  "result": {}
}
Monad API method that returns true if the client is actively listening for network connections. This method is useful for checking the node’s network connectivity status.
Get you own node endpoint todayStart for free and get your app to production levels immediately. No credit card required.You can sign up with your GitHub, X, Google, or Microsoft account.

Parameters

  • none

Response

  • resulttrue if the client is listening for connections, false otherwise.

net_listening code examples

const { ethers } = require("ethers");

const provider = new ethers.JsonRpcProvider("CHAINSTACK_NODE_URL");

async function checkListening() {
  const isListening = await provider.send("net_listening", []);
  console.log(`Node is listening: ${isListening}`);
}

checkListening();

Use case

A practical use case for net_listening is implementing health checks in your infrastructure to verify that nodes are properly connected to the network and able to receive peer connections.

Body

application/json
id
integer
default:1
jsonrpc
string
default:2.0
method
string
default:eth_getTransactionByBlockHashAndIndex
params
string[]

Response

200 - application/json

The transaction information

jsonrpc
string
id
integer
result
object
Last modified on March 19, 2026