Key takeaways
approve()stores a reusable spending permission in the token contract, andtransferFrom()uses it. They are two transactions, and the owner signs only the first.- The spender is usually a contract. Whoever calls that contract signs the second transaction, and the owner is not asked again.
- An unlimited allowance is 2^256 − 1. USDT on TRON and OpenZeppelin tokens since version 4.5.0 do not reduce it when it is spent, and it covers tokens the owner receives later. A bounded allowance falls with each spend.
- On TRON the approval is a
TriggerSmartContractcall that consumes Energy and moves no tokens. The allowance stays in storage until it is spent or the owner changes it. - Each non-zero allowance names a party that can move the wallet's tokens today. An investigator will not find the allowance in the wallet's transfer history. Read it with
allowance(owner, spender)or from TronScan's list of the account's approvals.
Token Standards on TRON covers how a TRC-20 transfer works. This article covers approve() and the allowance, which let a token owner give another party the power to move tokens that the owner still holds. The approval moves nothing.
A transfer log records tokens that moved, and an approval records who is able to move them. A wallet’s transfer history can be empty of anything unusual while another party holds a usable permission over its whole balance, so an investigator has to read approvals separately.
An approval, then a spend
The TRC-20 interface separates the permission from the movement. approve(spender, value) gives the permission. TRON’s developer documentation says it “authorizes _spender (often a DApp contract) to transfer up to _value tokens from the caller’s account.” TIP-20 says TRC-20 comes from Ethereum’s ERC-20. The two standards declare the same function signatures. Both say the spender may withdraw “multiple times, up to the _value amount,” and that calling approve again overwrites the current allowance. The amounts do not add.
allowance(owner, spender) reads the permission. It is a constant call that returns “the amount which _spender is still allowed to withdraw,” in the words of both standards.
transferFrom(from, to, value) uses the permission. The spender calls it in a separate transaction, and the tokens leave the owner’s balance against the stored allowance. The spender is usually a contract. On 17 November 2026, TronGrid returned the 50 most recent USDT Approval events, and all 13 spenders they named were contracts. In the 1,000 most recent that TronGrid returned on 26 November 2026, the spender was a contract in 963, and 61 of the 83 spenders named were contracts. A contract holds no key. The account that calls the contract signs the transaction, and the contract then calls transferFrom. When the spender is an ordinary account, that account signs the call itself.
TIP-20 also requires every successful approve to emit an Approval(owner, spender, value) event, with the owner and the spender as indexed topics.
Changing an allowance has a known risk. If an owner replaces one non-zero allowance with another, the spender “may use the old allowance before the update is confirmed and then use the new allowance,” in the Developer Hub’s words. TIP-20 and ERC-20 both say clients should build user interfaces that set an allowance to zero before setting a new value. Both add that the token contract itself should not enforce this, and USDT on TRON does not. Neither standard defines an expiry, so an allowance stays until someone changes it.
Unlimited and bounded allowances
By convention, an unlimited approval sets the allowance to the largest value a 256-bit integer can hold, which is 2^256 − 1, or type(uint256).max in Solidity. Neither TIP-20 nor ERC-20 gives that value a special meaning, but some token implementations do. OpenZeppelin’s ERC-20 contract has skipped the deduction for it since version 4.5.0 in February 2022, and its comment says the function “does not update the allowance value in case of infinite allowance.” USDT’s contract on TRON has the same rule. Its verified source reduces the allowance only when it is below the maximum.
A bounded allowance takes the other path in both contracts. Each transferFrom checks the amount against what remains, fails if the amount is larger, and writes back the reduced value.
The two behave differently over time. A bounded allowance falls with each spend and can reach zero. An unlimited allowance on these contracts stays at the maximum after any number of spends. It covers the owner’s whole balance, including tokens the wallet has not received yet.
How an approval reads on-chain
On TRON, the owner sends approve() as a TriggerSmartContract transaction, like any other contract call. Smart Contracts and the TVM covers that transaction type. TRON’s documentation on TRC-20 interaction says that state-changing calls consume Bandwidth and Energy. They also carry a fee_limit, which it describes as the “caller-side Energy budget cap for this call,” set in sun.
One approval read through TronGrid on 17 November 2026 is an example. In block 88,086,657 an account approved an unlimited USDT allowance to a contract that TronScan tags “SUN: Permit2”. The call data began with the approve selector 095ea7b3. The receipt held one Approval log and no Transfer log. The call used 99,764 Energy, and the account burned 9.9764 TRX to pay for it. What a Transaction Actually Costs explains how that cost is set. The owner paid to run code that moved no tokens.
The call writes the allowance into the token contract’s storage. It is a nested mapping from owner to spender to amount, which USDT’s contract declares as mapping (address => mapping (address => uint256)) internal allowed. Anyone can read it at the current block with a constant call to allowance. For the approval above, that call still returned the maximum after the transaction confirmed.
Several things can change a stored allowance. A bounded allowance falls when the spender uses it, and the owner can call approve again with any value, including zero. USDT on TRON also has increaseApproval and decreaseApproval. Time does not change it, so an approval signed years ago can still be in force.
The standing approval as evidence
A spender with a non-zero allowance can move the owner’s tokens now, and the owner does nothing further. Attackers use this. CYFIRMA documented a QR-code phishing campaign against Trust Wallet users that “covertly triggers an ERC-20 approve() transaction, granting unlimited token allowance to an attacker-controlled contract on BNB Smart Chain.” The report says the result is “persistent access, allowing attackers to drain funds from victim wallets without further interaction,” and that it exposes “both current and future USDT balances.” It adds that the attack “relies entirely on user-authorized transactions, not on vulnerabilities in the wallet itself.” That campaign ran on BNB Smart Chain, and the report does not mention TRON. TRC-20 has the same approve and transferFrom pair, so the same method is available against a TRON wallet.
Before the spender acts, the evidence is the Approval event in the token’s log and the non-zero entry in its allowance mapping. Together they identify a party that can move the balance.
An investigator should read approvals as well as transfers. TronScan lists an account’s approvals for each token, marks the unlimited ones, and names each spender. TronGrid’s contract-events endpoint filters by event name, block, confirmation, and time, and it has no filter for the owner. To use it, an investigator has to fetch the token’s Approval events and pick out the ones that name the wallet. Events alone do not give the current figure, because a spend on USDT emits no Approval event. Call allowance(owner, spender) for each spender to get the amount that remains. Each non-zero result is a party that can move the wallet’s tokens today. Each unlimited one is a party that can move all of them until the owner changes it.
Sources
- TRC-20 protocol interface — TRON Developer Hub: the
approve,allowance, andtransferFromfunctions,approveas the call that “authorizes_spender(often a DApp contract) to transfer up to_valuetokens from the caller’s account”, and theApprovalevent. - tips/tip-20.md at master · tronprotocol/tips · GitHub — TIP-20, “TRC-20 Token Standard”: the statement that TRC-20 comes from ERC-20, the same
approveandallowancewording as ERC-20, the rule that a successfulapproveMUST emitApproval, and the advice that client interfaces set an allowance to zero first while the contract itself should not enforce it. - ERC-20: Token Standard — the origin standard: the spender may withdraw “multiple times, up to the
_valueamount,” a newapproveoverwrites the allowance,allowancereturns “the amount which_spenderis still allowed to withdraw,” and a note that clients should set an allowance to zero before changing it while the contract itself should not enforce that. - openzeppelin-contracts/contracts/token/ERC20/ERC20.sol at master · OpenZeppelin/openzeppelin-contracts · GitHub — the
_spendAllowancefunction, which “does not update the allowance value in case of infinite allowance” and reduces a bounded one. - openzeppelin-contracts/CHANGELOG.md at master · OpenZeppelin/openzeppelin-contracts · GitHub — version 4.5.0 (9 February 2022) as the release that stopped updating a maximum allowance on
transferFrom. - TronScan: TetherToken contract code — the verified source of USDT on TRON, read on 17 November 2026 through TronScan’s public API: the allowance mapping, the deduction that is skipped at
MAX_UINT, anapprovethat does not require a zero allowance first, andincreaseApprovalanddecreaseApproval. - TRC-20 contract interaction — TRON Developer Hub:
approve()as atriggersmartcontractcall that consumes Bandwidth and Energy and carries afee_limit,allowanceas a constant call, and the warning about replacing one non-zero allowance with another. - Get events by contract address — TRON Developer Hub API reference: the endpoint’s filters, which are event name, block, confirmation, and time.
- TronGrid API: v1/contracts/TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t/events — read on 17 November 2026: the 50 most recent confirmed USDT
Approvalevents (blocks 88,086,581 to 88,086,657) named 13 spenders, andwallet/getcontractreturned contract code for all 13. A second read on 26 November 2026, in five pages of 200, returned the 1,000 most recent confirmed events, from blocks 88,339,853 to 88,342,419, between 11:50:15 and 13:58:39 UTC. The spender was a contract in 963 of them, which meanswallet/getcontractreturned a record for it. Of the 83 spenders the events named, 61 were contracts, 19 were ordinary accounts, and 3 were addresses with no account. - TronGrid API: wallet/gettransactioninfobyid — read on 17 November 2026 for transaction
e234a3f9fd1a9385f74a284057b6c706642dd795c2d8ff1c9b4a9f5220e530cc(block 88,086,657): oneApprovallog, 99,764 Energy, and anenergy_feeof 9,976,400 sun.wallet/gettransactionbyidreturned its call data, andwallet/triggerconstantcontractreturned the allowance afterwards. A second transaction,b291e2704899a82494f3c176c3e810fb666d33093b270678733fae5f89fda870, is atransferFromon USDT whose receipt holds aTransferlog and noApprovallog. - TronScan API: account/approve/list — read on 17 November 2026: one USDT approval for the account, marked
unlimited, to a spender tagged “SUN: Permit2”. - CYFIRMA — Silent Crypto Wallet Takeover: Unlimited USDT Approval Exploitation — a security-research report published on 14 April 2026. The campaign it documents targeted USDT on BNB Smart Chain through Trust Wallet, and it does not mention TRON. It is cited for the approval-drain method.
- smart_contract.proto — tronprotocol/protocol — the protocol definition of
TriggerSmartContract(owner_address,contract_address,call_value,data,call_token_value,token_id).