> ## 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_getBlockByHash | TRON

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

TRON API method that returns detailed block information by block hash, 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\_getBlockByHash")
* `params` — array containing method parameters
  * `blockHash` — the block hash as a hex string
  * `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_getBlockByHash` method is used for:

* Retrieving specific block information when you know the block hash through Web3 interfaces
* Verifying block data integrity and exploring blockchain structure
* Building block explorer functionality that allows hash-based block lookups
* Implementing transaction confirmation logic that tracks specific blocks


## OpenAPI

````yaml openapi/tron_node_api/jsonrpc_eth_getBlockByHash.json POST /95e61622bf6a8af293978377718e3b77/jsonrpc
openapi: 3.0.0
info:
  title: eth_getBlockByHash example
  version: 1.0.0
  description: >-
    This is an API example for eth_getBlockByHash, a method to get block
    information by block hash 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_getBlockByHash
      operationId: getBlockByHash
      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_getBlockByHash
                id:
                  type: integer
                  default: 1
                params:
                  type: array
                  default:
                    - '0x1b4'
                    - true
                  items:
                    oneOf:
                      - type: string
                        description: Block hash
                      - 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

````