Tx Doctor / TRON error library

Why did my TRON transaction fail?

TRON reports the outcome in the transaction receipt: SUCCESS, REVERT (the contract aborted itself), OUT_OF_ENERGY (the VM ran out of budget mid-call) or FAIL (a generic VM failure). The fee is charged in every case — each entry explains what happened and what to do.

Diagnose my transaction

Out of energy

TRX · energy — The smart-contract call consumed more Energy than the transaction provided, so the TRON virtual machine stopped mid-execution and reverted. The Energy…

Contract reverted (REVERT)

TRX · revert — The virtual machine ran the code to completion but the contract itself decided to abort — usually a TRC-20 token check: balance too low, allowance…

Transaction failed (FAIL)

TRX · fail — The virtual machine reported a generic failure before the contract could finish. It is the catch-all verdict: malformed calldata, an internal…