Queries a transaction execution receipt by transaction ID, including fees, Energy usage, contract execution status, event logs, and internal transactions.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Difference from GetTransactionByIdThis endpoint returns execution information (
TransactionInfo) for an on-chain transaction. Use GetTransactionById to retrieve the transaction’sraw_dataand 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. IfresultisSUCESS(the protocol spelling) or is omitted, the transaction succeeded. If it isFAILED, the transaction failed. You do not need to checkreceipt.result. - Smart contract deployments and calls: Contract execution succeeded only if the top-level
resultis notFAILEDandreceipt.resultisSUCCESS.
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
- GetTransactionById — query the transaction body
- GetTransactionInfoByBlockNum — query receipts for all transactions in a block
- API signature and broadcast flow — confirm execution results after broadcast
- Confirmation semantics — distinguish transaction body, execution receipt, and solidified receipt
- Internal transactions — semantics of
internal_transactionsin TransactionInfo - Contract calls and Energy billing — source of receipt fields such as
energy_usageandenergy_fee