> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chainstack.com/llms.txt
> Use this file to discover all available pages before exploring further.

# net_listening | Monad

> Monad API method that returns true if the client is actively listening for network connections. Available on Monad via Chainstack.

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.

## Parameters

* `none`

## Response

* `result` — `true` if the client is listening for connections, `false` otherwise.

## `net_listening` code examples

<CodeGroup>
  ```javascript ethers.js theme={"system"}
  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();
  ```

  ```python web3.py theme={"system"}
  from web3 import Web3

  node_url = "CHAINSTACK_NODE_URL"

  web3 = Web3(Web3.HTTPProvider(node_url))
  is_listening = web3.net.listening
  print(f'Node is listening: {is_listening}')
  ```
</CodeGroup>

## 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.


## OpenAPI

````yaml openapi/monad_node_api/client_info/net_listening.json POST /
openapi: 3.0.0
info:
  title: Polygon Node API
  version: 1.0.0
  description: This is an API for interacting with a Chainstack node.
servers:
  - url: https://nd-422-757-666.p2pify.com
security: []
paths:
  /:
    post:
      tags:
        - Transactions info
      summary: eth_getTransactionByBlockHashAndIndex
      operationId: getTransactionByBlockHashAndIndex
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_getTransactionByBlockHashAndIndex
                params:
                  type: array
                  items:
                    anyOf:
                      - type: string
                        title: Block hash
                      - type: string
                        title: Transaction index
                  default:
                    - >-
                      0xe5154e40a873257082e257c405d28bf2cc58d80629cc5468d2f7e6dba3c4e7db
                    - '0x3D'
      responses:
        '200':
          description: The transaction information
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object

````