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

> TRON API method that retrieves transaction details by transaction ID. This method returns comprehensive information about a specific transaction.

TRON API method that retrieves transaction details by transaction ID. This method returns comprehensive information about a specific transaction, including its execution results, resource consumption, and contract details.

## Parameters

* `value` — the transaction ID (hash) to retrieve
* `visible` — optional boolean to specify address format (default: false for hex format)

## Response

* `ret` — array of execution results containing:
  * `contractRet` — contract execution result (SUCCESS, REVERT, etc.)
  * `fee` — transaction fee paid
* `signature` — array of transaction signatures
* `txID` — transaction ID hash
* `net_usage` — bandwidth consumed
* `raw_data_hex` — hexadecimal representation of raw transaction data
* `net_fee` — network fee paid
* `energy_usage` — energy consumed (for smart contracts)
* `blockNumber` — block number containing the transaction
* `block_timestamp` — block timestamp
* `contract_result` — contract execution return data (for smart contracts)

## Use case

The `wallet/gettransactionbyid` method is used for:

* Checking transaction status and execution results after broadcasting.
* Retrieving detailed transaction information for wallets and explorers.
* Analyzing transaction fees and resource consumption.
* Debugging smart contract execution and validating transaction outcomes.


## OpenAPI

````yaml openapi/tron_node_api/gettransactionbyid.json post /95e61622bf6a8af293978377718e3b77/wallet/gettransactionbyid
openapi: 3.0.0
info:
  title: wallet/gettransactionbyid TRON API
  version: 1.0.0
  description: Get transaction details by transaction ID
servers:
  - url: https://tron-mainnet.core.chainstack.com
security: []
paths:
  /95e61622bf6a8af293978377718e3b77/wallet/gettransactionbyid:
    post:
      tags:
        - Transaction Operations
      summary: wallet/gettransactionbyid
      operationId: getTransactionById
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - value
              properties:
                value:
                  type: string
                  default: >-
                    d5ec749ecc2a615399d6573b3550650b4e6606d9ff0d123cd5bdc0bc6a33b0a2
                visible:
                  type: boolean
                  default: false
      responses:
        '200':
          description: Transaction details
          content:
            application/json:
              schema:
                type: object
                properties:
                  ret:
                    type: array
                    items:
                      type: object
                      properties:
                        contractRet:
                          type: string
                        fee:
                          type: integer
                  signature:
                    type: array
                    items:
                      type: string
                  txID:
                    type: string
                  net_usage:
                    type: integer
                  raw_data_hex:
                    type: string
                  net_fee:
                    type: integer
                  energy_usage:
                    type: integer
                  blockNumber:
                    type: integer
                  block_timestamp:
                    type: integer
                  contract_result:
                    type: array
                    items:
                      type: string

````