> ## 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: Chainstack Node API
  version: 1.0.0
  description: This is an API for interacting with a Chainstack node.
servers:
  - url: https://arc-testnet.core.chainstack.com/6caa7fd90475ac9214f7521dd460fa7c
security: []
paths:
  /:
    post:
      tags:
        - upload
      summary: eth_getAccount
      operationId: eth_getAccount
      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_getAccount
                params:
                  type: array
                  default:
                    - '0x5d20879655df3c1e04ab111af0009ad650e762f0'
                    - latest
                  items:
                    anyOf:
                      - type: string
                        title: Address
                        description: The address of the account.
                      - type: string
                        title: Block
                        description: Block number or tag (latest, earliest, pending).
      responses:
        '200':
          description: Returns the result of eth_getAccount.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object
                    properties:
                      nonce:
                        type: string
                      balance:
                        type: string
                      storageRoot:
                        type: string
                      codeHash:
                        type: string
              example:
                jsonrpc: '2.0'
                id: 1
                result:
                  nonce: '0x1ef'
                  balance: '0x7e95defb1a447e2c6'
                  storageRoot: >-
                    0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421
                  codeHash: >-
                    0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470

````