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

# jsonrpc eth_getBlockByNumber | TRON

> TRON API method that returns block information by block number. This method provides Ethereum-compatible interface for TRON blockchain.

TRON API method that returns detailed block information by block number, providing an Ethereum-compatible interface for accessing TRON blockchain data.

## Parameters

* `jsonrpc` — the JSON-RPC protocol version (always "2.0")
* `method` — the method name (always "eth\_getBlockByNumber")
* `params` — array containing method parameters
  * `blockNumber` — the block number in hexadecimal format or "latest", "earliest", "pending"
  * `fullTransactionObjects` — boolean indicating whether to return full transaction objects (true) or just transaction hashes (false)
* `id` — request identifier (number or string)

## Response

* `jsonrpc` — the JSON-RPC protocol version ("2.0")
* `id` — the request identifier that matches the request
* `result` — block object containing block information including hash, number, parent hash, timestamp, transactions, and other block metadata

## Use case

The `jsonrpc eth_getBlockByNumber` method is used for:

* Retrieving detailed block information for analysis and monitoring through Web3 interfaces
* Implementing block explorers and blockchain data visualization tools
* Validating transaction inclusion and block confirmations in dApps
* Building synchronization mechanisms for off-chain systems tracking TRON blockchain state


## OpenAPI

````yaml openapi/tron_node_api/jsonrpc_eth_getBlockByNumber.json POST /95e61622bf6a8af293978377718e3b77/jsonrpc
openapi: 3.0.0
info:
  title: eth_getBlockByNumber example
  version: 1.0.0
  description: >-
    This is an API example for eth_getBlockByNumber, a method to get block
    information by block number on the TRON network through Ethereum-compatible
    JSON-RPC interface.
servers:
  - url: https://tron-mainnet.core.chainstack.com
security: []
paths:
  /95e61622bf6a8af293978377718e3b77/jsonrpc:
    post:
      tags:
        - TRON JSON-RPC Operations
      summary: eth_getBlockByNumber
      operationId: getBlockByNumber
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - jsonrpc
                - method
                - id
                - params
              properties:
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_getBlockByNumber
                id:
                  type: integer
                  default: 1
                params:
                  type: array
                  default:
                    - latest
                    - true
                  items:
                    oneOf:
                      - type: string
                        description: Block number in hex or 'latest'|'earliest'|'pending'
                      - type: boolean
                        description: >-
                          If true, return full transaction objects; if false,
                          only hashes
                  minItems: 2
                  maxItems: 2
      responses:
        '200':
          description: Block information including transactions
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: object
                    description: Block object containing block information

````