TRON token approvals are revoked by setting a TRC-20 spender’s allowance to zero in a signed smart-contract transaction.
Use TRONSCAN to revoke an unused TRC-20 allowance
TRONSCAN lets you review your account’s token-spender pairs and revoke an unused allowance. Start with the wallet that holds your past approvals, TronLink, and some TRX for the transaction’s Energy cost. After a SunSwap swap, you can use SunSwap to explore how the exchange’s TRC-20 swaps and liquidity pools fit into the approval process.
- Connect TronLink to TRONSCAN. Open TRONSCAN, connect the TronLink wallet that made the approvals, and confirm that the selected account is the one you want to clean up. The approval list belongs to that account, so connecting a different wallet will show different permissions.
- Open your account’s Approvals list. Find the approvals view for the connected address. Each row represents one token and one spender contract. The spender is the contract allowed to call transferFrom on your behalf, up to the allowance shown for that token.
- Choose an unused spender. Review the token, spender label, and allowance in each row. A SunSwap router may appear with a verified contract label; use the label to help identify it, and review the full row before acting. Revoke only allowances you no longer need. An allowance is permission for future pulls, so leaving an unused one in place gives that spender a way to transfer the approved token later.
- Click Revoke and sign in TronLink. TRONSCAN submits a transaction that calls the token contract’s approve(spender, 0) function. Setting the amount to zero revokes that spender’s allowance for that token. Review the transaction in TronLink and sign it. Keep TRX available: the contract call consumes Energy, and any Energy cost not covered by staked resources is paid in TRX. The amount can vary with the transaction and available resources.
- Repeat for each pair, then confirm zero. TRONSCAN presents the account’s pairs together, so you can review and revoke several unused allowances in one cleanup session. Each revoke is still its own transaction. When it confirms, return to that token-spender row and verify that the allowance reads 0. That zero is the completion check for the pair.
For a short example, say you swapped a TRC-20 token on SunSwap and later decide its router approval is no longer needed. You connect the same TronLink account, open Approvals, locate the token and verified spender label, then select Revoke. After reviewing and signing in TronLink, you wait for the transaction to confirm and check the row again. The row now shows zero for that pair; other token-spender rows keep their own allowances until you revoke them separately.
The TRON Developer Hub’s TRC-20 standard, in its approve and allowance method definitions, describes setting and reading a spender’s allowance. Its Resource Model section on Energy explains the resource cost of smart-contract calls. The revoke uses those same mechanics: approve zero changes the allowance, while the transaction that makes the change consumes resources.
TRONSCAN is useful for a full review because it shows the account’s approval pairs together. An approve-to-zero action inside a DApp handles only the token and spender pair that DApp selects, so it does not clean up other allowances. After a revoke, your next SunSwap trade with that token will ask you to approve the spender again. You can then grant the allowance needed for that trade.
Revoking blocks future transferFrom pulls up to the old allowance; it does not undo transfers that already happened. If you find an unknown spender, revoke its allowance and move any remaining tokens to a fresh address as well. The zero allowance closes that spender’s future access to the token in the current wallet, while moving the balance protects the tokens you still hold.
Related questions
How much does revoking an approval cost on TRON?
Revoking costs the Energy required for the token contract call. The exact amount can vary; if your available Energy does not cover it, the transaction uses TRX to pay the remaining cost. Keep some TRX in the connected wallet before signing.
Should I revoke approvals after every SunSwap trade?
You can revoke an allowance when you no longer want that spender to have permission to pull the token. Revoking after every trade is a choice, not a requirement; the next trade using that token will require a fresh approval. For unused spenders, the practical endpoint is the same: revoke the pair and confirm its allowance reads 0.
Top comments (0)