GetTransactionInfoById

Queries a transaction execution receipt by transaction ID, including fees, Energy usage, contract execution status, event logs, and internal transactions.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
📘

Difference from GetTransactionById

This endpoint returns execution information (TransactionInfo) for an on-chain transaction. Use GetTransactionById to retrieve the transaction’s raw_data and signatures.

How do I know whether a transaction succeeded?

When the endpoint returns execution information, check the fields for the transaction type:

  • Transactions that do not execute a smart contract (such as regular TRX or TRC-10 transfers): Check the top-level result. If result is SUCESS (the protocol spelling) or is omitted, the transaction succeeded. If it is FAILED, the transaction failed. You do not need to check receipt.result.
  • Smart contract deployments and calls: Contract execution succeeded only if the top-level result is not FAILED and receipt.result is SUCCESS.

An empty object ({}) means no execution information was found. It does not tell you whether the transaction succeeded or failed.

/wallet/gettransactioninfobyid can return a receipt before its block is solidified. To confirm the final execution result, retrieve the transaction’s solidified receipt via /walletsolidity/gettransactioninfobyid.


Related resources

Body Params
string
required

Transaction ID (64 hexadecimal characters).

Response

Language
URL
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json