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

> TRON API method that retrieves detailed transaction receipt and execution information by transaction ID. Chainstack TRON reference.

TRON API method that retrieves detailed transaction receipt and execution information by transaction ID. This method provides comprehensive data about a transaction's execution status, resource usage, fees, and any smart contract events that occurred.

## Parameters

* `value` — the transaction ID (hash) in hexadecimal format

## Response

* `id` — transaction ID (hash)
* `blockNumber` — block number where the transaction was included
* `blockTimeStamp` — timestamp when the block was created (milliseconds)
* `contractResult` — array of smart contract execution results in hex format
* `contract_address` — address of the deployed contract (for contract creation transactions)
* `receipt` — transaction receipt containing:
  * `energy_usage` — total energy consumed by the transaction
  * `energy_fee` — energy fee paid in SUN (1 TRX = 1,000,000 SUN)
  * `origin_energy_usage` — original energy usage before optimizations
  * `energy_usage_total` — total energy usage including all operations
  * `net_usage` — bandwidth consumed by the transaction
  * `net_fee` — bandwidth fee paid in SUN
  * `result` — execution result status (SUCCESS, REVERT, etc.)
* `log` — array of event logs emitted by smart contracts during execution
* `result` — overall transaction execution result
* `resMessage` — error message if transaction failed (hex-encoded)

## Use case

The `wallet/gettransactioninfobyid` method is used for:

* Getting detailed transaction execution information and resource consumption data.
* Monitoring transaction success/failure status and error messages.
* Analyzing smart contract execution results and event logs.
* Calculating actual fees paid for energy and bandwidth usage.
* Building transaction explorers and analytics tools that need execution details.
* Debugging smart contract interactions by examining logs and results.


## OpenAPI

````yaml openapi/tron_node_api/gettransactioninfobyid.json post /95e61622bf6a8af293978377718e3b77/wallet/gettransactioninfobyid
openapi: 3.0.0
info:
  title: wallet/gettransactioninfobyid TRON API
  version: 1.0.0
  description: Get transaction receipt and execution information by transaction ID
servers:
  - url: https://tron-mainnet.core.chainstack.com
security: []
paths:
  /95e61622bf6a8af293978377718e3b77/wallet/gettransactioninfobyid:
    post:
      tags:
        - Transaction Operations
      summary: wallet/gettransactioninfobyid
      operationId: getTransactionInfoById
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                value:
                  type: string
                  description: The transaction ID (hash) in hexadecimal format
              required:
                - value
              example:
                value: >-
                  4c85b7a5c6e1d5f6e1d5c6f7e1d5c6f7e1d5c6f7e1d5c6f7e1d5c6f7e1d5c6f7
      responses:
        '200':
          description: Transaction receipt and execution information
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: string
                    description: Transaction ID
                  blockNumber:
                    type: number
                    description: Block number where transaction was included
                  blockTimeStamp:
                    type: number
                    description: Block timestamp in milliseconds
                  contractResult:
                    type: array
                    description: Smart contract execution results
                    items:
                      type: string
                  contract_address:
                    type: string
                    description: Contract address if contract creation transaction
                  receipt:
                    type: object
                    properties:
                      energy_usage:
                        type: number
                        description: Energy consumed by the transaction
                      energy_fee:
                        type: number
                        description: Energy fee in SUN
                      origin_energy_usage:
                        type: number
                        description: Original energy usage
                      energy_usage_total:
                        type: number
                        description: Total energy usage
                      net_usage:
                        type: number
                        description: Bandwidth consumed
                      net_fee:
                        type: number
                        description: Bandwidth fee in SUN
                      result:
                        type: string
                        description: Transaction execution result
                  log:
                    type: array
                    description: Event logs from smart contract execution
                    items:
                      type: object
                  result:
                    type: string
                    description: Overall transaction result status
                  resMessage:
                    type: string
                    description: Result message if transaction failed

````