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

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

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

Tempo produces blocks approximately every 0.5 seconds with sub-second finality using Simplex Consensus.

## Parameters

* `none`

## Response

* `result` — the integer value of the node's latest block number encoded as hexadecimal.

## `eth_blockNumber` code examples

<CodeGroup>
  ```javascript ethers.js theme={"system"}
  const ethers = require('ethers');
  const NODE_URL = "CHAINSTACK_NODE_URL";
  const provider = new ethers.JsonRpcProvider(NODE_URL);

  const eth_getBlockNumber = async () => {
      const block_Number = await provider.getBlockNumber();
      console.log(block_Number);
    };

  eth_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)
  ```

  ```bash cURL theme={"system"}
  curl -X POST "CHAINSTACK_NODE_URL" \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc": "2.0", "method": "eth_blockNumber", "params": [], "id": 1}'
  ```
</CodeGroup>

## Use case

Tempo has sub-second block times (\~0.5 seconds), making it ideal for applications that need to track real-time payment status. A DApp can use the current block number to determine when a payment transaction has been finalized.


## OpenAPI

````yaml openapi/tempo_node_api/blocks_info/eth_blockNumber.json POST /
openapi: 3.0.0
info:
  title: eth_blockNumber Tempo example
  version: 1.0.0
  description: This is an API example for eth_blockNumber for Tempo.
servers:
  - url: https://tempo-mainnet.core.chainstack.com/c3ce2925b51f1ed18719fe8a23bbdccf
security: []
paths:
  /:
    post:
      tags:
        - Blocks info
      summary: eth_blockNumber
      operationId: tempo-eth-blockNumber
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_blockNumber
                params:
                  type: array
                  items: {}
                  default: []
                id:
                  type: integer
                  default: 1
      responses:
        '200':
          description: The block number information
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: string
                    description: The latest block number encoded as hexadecimal

````