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

# walletsolidity/getblockbynum | TRON

> TRON API method that retrieves a solidified block by its block number. This method queries confirmed and finalized blockchain state.

TRON API method that retrieves a solidified block by its block number. This method queries confirmed and finalized blockchain state, providing reliable block information that cannot be rolled back.

## Parameters

* `num` — the block number to retrieve (integer)

## Response

Returns detailed block information including:

* `blockID` — the block hash
* `block_header` — block header information
  * `raw_data` — raw block header data
  * `witness_signature` — witness signature for the block
* `transactions` — array of transactions in the block
* `blockSize` — size of the block in bytes
* `timestamp` — block creation timestamp
* `txTrieRoot` — transaction trie root hash
* `parentHash` — hash of the parent block
* `number` — block number
* `witness_address` — address of the block producer

## Use case

The `walletsolidity/getblockbynum` method is used for:

* Retrieving confirmed block data by number from solidified blockchain state
* Analyzing transaction patterns within finalized blocks
* Building blockchain explorers with reliable, non-reversible block data
* Implementing applications that require confirmed block information for auditing


## OpenAPI

````yaml openapi/tron_node_api/walletsolidity_getblockbynum.json post /95e61622bf6a8af293978377718e3b77/walletsolidity/getblockbynum
openapi: 3.0.0
info:
  title: walletsolidity/getblockbynum TRON API
  version: 1.0.0
  description: Get solidified block by block number
servers:
  - url: https://tron-mainnet.core.chainstack.com
security: []
paths:
  /95e61622bf6a8af293978377718e3b77/walletsolidity/getblockbynum:
    post:
      tags:
        - Solidity Query
      summary: walletsolidity/getblockbynum
      operationId: getSolidityBlockByNum
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - num
              properties:
                num:
                  type: integer
                  description: Block number to retrieve
                  example: 70000000
      responses:
        '200':
          description: Solidified block information
          content:
            application/json:
              schema:
                type: object
                properties:
                  blockID:
                    type: string
                    description: Block hash identifier
                    example: >-
                      0000000004326f801c9c4b8c43c5e0b1f5e7b4c4a8ff6d02ab53a26d2344a5c1
                  block_header:
                    type: object
                    properties:
                      raw_data:
                        type: object
                        properties:
                          number:
                            type: integer
                            example: 70000000
                          txTrieRoot:
                            type: string
                            example: >-
                              d41c56e7e8b4a9d4e7c8c7b4f3e6d5a2b1c9d8e7f6a5b4c3d2e1f0e9d8c7b6
                          parentHash:
                            type: string
                            example: >-
                              0000000004326f7f2c9c4b8c43c5e0b1f5e7b4c4a8ff6d02ab53a26d2344a5c0
                          timestamp:
                            type: integer
                            example: 1704067200000
                          witness_address:
                            type: string
                            example: >-
                              41e38c95e0d7e9b68f7c8f7b4d3e6a5c2b1f9e8d7c6b5a4f3e2d1c0b9a8
                      witness_signature:
                        type: string
                        description: Witness signature for the block
                  transactions:
                    type: array
                    description: Array of transactions in the block
                    items:
                      type: object
                      properties:
                        txID:
                          type: string
                        raw_data:
                          type: object
                        signature:
                          type: array
                          items:
                            type: string
                  blockSize:
                    type: integer
                    description: Size of the block in bytes
                    example: 1024

````