> ## 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/getblock | TRON

> TRON API method that retrieves detailed block information from the TRON blockchain by block number or block hash. TRON via Chainstack.

TRON API method that retrieves detailed block information from the TRON blockchain by block number or block hash.

## Parameters

* `id_or_num` — block hash (as hex string) or block number to retrieve
* `detail` — optional boolean. When true, returns detailed transaction information. Default is false.
* `visible` — optional boolean parameter. When set to `true`, addresses are in base58 format. Default is `false`.

## Response

* `blockID` — the block hash
* `block_header` — block header information including:
  * `raw_data` — raw header data with timestamp, number, parent hash, etc.
  * `witness_signature` — block producer signature
* `transactions` — array of transactions in the block (detailed if detail=true)

## Use case

The `wallet/getblock` method is used for:

* Retrieving specific block information for analysis
* Building block explorers and blockchain visualization tools
* Verifying block contents and transaction inclusion
* Monitoring blockchain state at specific block heights
* Analyzing block production patterns and timing


## OpenAPI

````yaml openapi/tron_node_api/getblock.json post /95e61622bf6a8af293978377718e3b77/wallet/getblock
openapi: 3.0.0
info:
  title: wallet/getblock TRON API
  version: 1.0.0
  description: Get block information by block number or hash
servers:
  - url: https://tron-mainnet.core.chainstack.com
security: []
paths:
  /95e61622bf6a8af293978377718e3b77/wallet/getblock:
    post:
      tags:
        - Blockchain Info
      summary: wallet/getblock
      operationId: getBlock
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - id_or_num
              properties:
                id_or_num:
                  type: string
                  default: '66677878'
                  description: Block number or block hash
                detail:
                  type: boolean
                  default: true
                visible:
                  type: boolean
                  default: true
      responses:
        '200':
          description: Block information
          content:
            application/json:
              schema:
                type: object
                properties:
                  blockID:
                    type: string
                  block_header:
                    type: object
                    properties:
                      raw_data:
                        type: object
                      witness_signature:
                        type: string
                  transactions:
                    type: array
                    items:
                      type: object

````