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

> TRON API method that retrieves detailed transaction information for all transactions within a specific block number. TRON via Chainstack.

TRON API method that retrieves detailed transaction information for all transactions within a specific block number.

## Parameters

* `num` — the block number to retrieve transaction information from
* `visible` — optional boolean parameter. When set to `true`, addresses are in base58 format. Default is `false`.

## Response

* Array of transaction info objects, each containing:
  * `id` — transaction hash
  * `fee` — transaction fee in sun
  * `blockNumber` — block number containing the transaction
  * `blockTimeStamp` — block timestamp
  * `contractResult` — contract execution result
  * `receipt` — transaction receipt with energy usage and result
  * `log` — event logs from smart contract execution

## Use case

The `wallet/gettransactioninfobyblocknum` method is used for:

* Analyzing all transaction details within a specific block
* Building block explorers with detailed transaction information
* Monitoring transaction fees and energy consumption patterns
* Auditing smart contract execution results in a block
* Creating comprehensive transaction analysis tools


## OpenAPI

````yaml openapi/tron_node_api/gettransactioninfobyblocknum.json post /95e61622bf6a8af293978377718e3b77/wallet/gettransactioninfobyblocknum
openapi: 3.0.0
info:
  title: wallet/gettransactioninfobyblocknum TRON API
  version: 1.0.0
  description: Get transaction info for all transactions in a block
servers:
  - url: https://tron-mainnet.core.chainstack.com
security: []
paths:
  /95e61622bf6a8af293978377718e3b77/wallet/gettransactioninfobyblocknum:
    post:
      tags:
        - Transaction Info
      summary: wallet/gettransactioninfobyblocknum
      operationId: getTransactionInfoByBlockNum
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - num
              properties:
                num:
                  type: integer
                  default: 66677878
                visible:
                  type: boolean
                  default: true
      responses:
        '200':
          description: Transaction information for all transactions in the block
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                    fee:
                      type: integer
                    blockNumber:
                      type: integer
                    blockTimeStamp:
                      type: integer
                    contractResult:
                      type: array
                      items:
                        type: string
                    receipt:
                      type: object
                    log:
                      type: array
                      items:
                        type: object

````