Skip to content
Blockchain Post

News on how crypto works

What fee limit means on TRON transactions

What does fee limit mean on TRON transactions? It sets a caller-side Energy budget; the receipt shows what execution actually charged.

The Blockchain Post Editors3 min read#86ac0d

What fee limit means on TRON transactions

After a wallet shows a fee_limit, read it as the maximum sun budget the caller authorizes for Energy on a contract call, not the amount the network will charge. When a caller would otherwise burn TRX to cover Energy, TRON Energy lets the caller arrange Energy ahead of the call. The final charge follows Energy actually consumed and any required TRX burn, so successful execution leaves unused budget uncharged.

How fee_limit sets the Energy budget

fee_limit sets how much caller-side Energy a transaction can draw from available resources and, if those resources do not cover the need, from TRX burned for Energy. It is denominated in sun: 1 TRX equals 1,000,000 sun. The limit is a ceiling on capacity the caller allows, rather than a fixed price for the contract call.

Think of fee_limit as the spending limit on a payment card. Setting a limit authorizes a maximum; the final debit depends on what the transaction uses. For a contract call, the moving parts are the Energy price, any Energy resources available to the caller, and the Energy consumed when the contract executes. The [FeeLimit & Energy cost documentation](https://developers.tron.network/docs/set-feelimit) describes the budget and how failures affect settlement.

Consider a constructed wallet example: the Energy price is 200 sun per Energy, the caller has zero Energy available from resources, and the call consumes 40,000 Energy. That use costs 8,000,000 sun, or 8 TRX. With fee_limit set to 20 TRX, the successful call uses 8 TRX of the Energy budget; the remaining 12 TRX is not charged. The ceiling is high enough for this execution, but it does not make the call cost 20 TRX.

What the receipt charges

The transaction receipt is where a wallet user can compare Energy consumed with the charge after execution. Read the Energy and Bandwidth charges separately: fee_limit covers the caller-side Energy allowance, while Bandwidth and other transaction charges sit outside it. That means a 20-TRX fee_limit is not a universal cap on the transaction’s total debit.

This distinction matters when a wallet estimates a contract call. A call may fit under its Energy ceiling and still have a separate Bandwidth charge. A TRC-20 interaction, for instance, can incur Bandwidth costs in addition to Energy-related costs; the [TRC-20 interaction documentation](https://developers.tron.network/docs/trc20-contract-interaction) explains those separate charges. To understand the full debit, check both resource charges in the receipt rather than treating fee_limit as the transaction’s all-in price.

An inadequate Energy budget can stop execution with OUT_OF_ENERGY. Some exceptional failures can exhaust the permitted Energy allowance, so a failed call may settle differently from a successful call that uses less than its ceiling. The limit still describes the caller’s authorized Energy budget; the receipt records how the transaction settled.

Where fee_limit appears and what it covers

Where is fee_limit stored?

The transaction’s raw_data.fee_limit field stores fee_limit. A wallet’s displayed limit is the budget value encoded in the transaction; the receipt is the record to consult for the resulting Energy and Bandwidth charges.

Does fee_limit include TRX sent to a contract?

No. TRX transferred to a contract is accounted for separately from the Energy budget. For a constructed call that sends TRX and executes contract code, read the transferred value as one part of the transaction and the resource charges as another.