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

# eth_blockNumber | Monad

> Monad API method that returns the latest block number of the blockchain. Monad developers can call eth_blockNumber via Chainstack.

Monad API method that returns the latest block number of the blockchain. A block number is a hexadecimal number representing the block's position in the blockchain.

## Parameters

* `none`

## Response

* `result` — the integer value of the node's latest block number, encoded as hexadecimal. The block number is used to identify the block's position in the blockchain and is updated every time a new block is added to the chain.

## `eth_blockNumber` code examples

<CodeGroup>
  ```javascript ethers.js theme={"system"}
  const { ethers } = require("ethers");

  const provider = new ethers.JsonRpcProvider("CHAINSTACK_NODE_URL");

  async function getBlockNumber() {
    const blockNumber = await provider.getBlockNumber();
    console.log(`Latest block: ${blockNumber}`);
  }

  getBlockNumber();
  ```

  ```python web3.py theme={"system"}
  from web3 import Web3

  node_url = "CHAINSTACK_NODE_URL"

  web3 = Web3(Web3.HTTPProvider(node_url))
  print(web3.eth.block_number)
  ```
</CodeGroup>

## Use case

A practical use case for `eth_blockNumber` is tracking the current state of the blockchain. Applications can use the current block number to determine time-sensitive operations, such as calculating when a time-locked contract will become executable or monitoring network progress.


## OpenAPI

````yaml openapi/monad_node_api/blocks_info/eth_blockNumber.json POST /
openapi: 3.0.0
info:
  title: Monad Node API
  version: 1.0.0
  description: This is an API for interacting with a Monad node.
servers:
  - url: https://monad-testnet.core.chainstack.com/9c5b265f20b3ea5df4f54f70eb74b800
security: []
paths:
  /:
    post:
      tags:
        - Blocks info
      summary: eth_blockNumber
      operationId: eth_blockNumber
      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_blockNumber
                params:
                  type: array
                  default: []
      responses:
        '200':
          description: The latest block number.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: string

````