Guide · Security

How to revoke token approvals

Written by XAUConnect Labs · Reviewed against live product behavior · Updated 16 October 2026

How to revoke token approvals: open the token's allowance for that spender and set it to zero, then confirm the transaction in your wallet.

You pay gas in the chain's native coin. The tokens stay in your wallet. Only the permission disappears. Do this for unlimited approvals you do not remember, especially on Ethereum where old spenders are a common loss. Solana swaps do not leave an ERC-20 allowance behind.

A brass key beside a sealed vial, the picture of a token approval
An approval is permission. It is not the swap.

What not to revoke in a panic

If you are mid-trade, revoking the router you are about to use will make the next swap fail until you approve again. Revoke after the trade, or revoke spenders that are not today's router.

Which allowance to clear

Clear unlimited allowances on spenders you do not recognise. Leave the router you are about to use until the swap confirms, or the next transaction will ask for approval again. Why the allowance exists is what a token approval is. This costs gas. It does not return tokens already taken.

Legal

Risk disclosure

XAUConnect is a non-custodial swap aggregator. Digital assets are volatile and may lose value rapidly. Content on this page is educational and not investment advice. Verify every contract address on the official block explorer before approving a transaction.

Frequently asked questions

What is the best way to revoke token approvals?

You pay gas in the chain's native coin. The tokens stay in your wallet.

Does revoke return tokens a contract already took?

No. It only stops future spends. Tokens already transferred are gone.

Live execution

Trade on XAUConnect

Open the swap page to compare live routes, set slippage, and sign from your own wallet. You keep the keys.

Continue exploring

Related markets, guides & networks

Next pages on this subject. Read them before you trade.

Build programmatically

Swap via API for bots and AI agents: quotes, builds, and cross-chain routes.

Developer quickstart