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

# wallet/getblockbyid | TRON

> TRON API method that retrieves a specific block from the TRON blockchain using its block ID (hash). Use it on TRON via Chainstack.

TRON API method that retrieves a specific block from the TRON blockchain using its block ID (hash). This method allows you to fetch detailed information about a particular block, including its header, transactions, and metadata.

## Parameters

* `value` — the block ID (hash) in hexadecimal format to retrieve

## Response

* `blockID` — the block hash identifier
* `block_header` — block header information containing:
  * `raw_data` — raw block header data including:
    * `timestamp` — block generation timestamp in milliseconds
    * `txTrieRoot` — transaction trie root hash
    * `parentHash` — parent block hash
    * `number` — block height/number
    * `witness_address` — address of the block producer (witness)
    * `version` — block version
  * `witness_signature` — digital signature of the block producer
* `transactions` — array of all transactions included in the block

## Use case

The `wallet/getblockbyid` method is used for:

* Retrieving detailed information about a specific block using its hash.
* Building block explorers that need to display block details by ID.
* Verifying block contents and validating transactions within a specific block.
* Analyzing historical blockchain data for auditing and compliance purposes.
* Implementing blockchain synchronization tools that need to fetch blocks by their identifiers.


## OpenAPI

````yaml openapi/tron_node_api/getblockbyid.json post /95e61622bf6a8af293978377718e3b77/wallet/getblockbyid
openapi: 3.0.0
info:
  title: wallet/getblockbyid TRON API
  version: 1.0.0
  description: Get a specific block from the TRON blockchain by its ID/hash
servers:
  - url: https://tron-mainnet.core.chainstack.com
security: []
paths:
  /95e61622bf6a8af293978377718e3b77/wallet/getblockbyid:
    post:
      tags:
        - Block Operations
      summary: wallet/getblockbyid
      operationId: getBlockById
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                value:
                  type: string
                  description: The block ID (hash) in hexadecimal format
              required:
                - value
              example:
                value: >-
                  0000000000f4245300b88ffeb9bdb95b88c66b5ce6bb0ee79d85d5ce14b6a2a7ca
      responses:
        '200':
          description: Block information
          content:
            application/json:
              schema:
                type: object
                properties:
                  blockID:
                    type: string
                    description: Block ID (hash)
                  block_header:
                    type: object
                    properties:
                      raw_data:
                        type: object
                        properties:
                          timestamp:
                            type: number
                            description: Block timestamp in milliseconds
                          txTrieRoot:
                            type: string
                            description: Transaction trie root hash
                          parentHash:
                            type: string
                            description: Hash of the parent block
                          number:
                            type: number
                            description: Block height/number
                          witness_address:
                            type: string
                            description: Address of the block producer
                          version:
                            type: number
                            description: Block version
                      witness_signature:
                        type: string
                        description: Block producer's signature
                  transactions:
                    type: array
                    description: Array of transactions in the block
                    items:
                      type: object

````