Learn · Security

What is a token approval and why does it matter?

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

What is a token approval and why does it matter? It is the transaction that lets a router spend a specific ERC-20 from your wallet, and it is not the swap itself.

Ethereum tokens do not move because you clicked Swap. The token contract checks an allowance. If the allowance is below the amount, the router cannot pull the tokens and the swap reverts. Solana does not use this ERC-20 allowance step. Phantom shows the balance changes in one signature.

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

Unlimited is the risky default

Many wallets offer an unlimited allowance so you are not asked again. That permission remains after the trade. If the spender contract is later faulty, the allowance is still valid. Exact approvals cost an extra transaction on the next trade and limit the damage.

How to read the prompt

The approval names a token and a spender. Match the token to the contract you meant to trade, on the chain shown in the wallet. The first and last characters of an address are not enough. Copycats copy those.

Revoke when the trade is done

Set the allowance back to zero for spenders you no longer use. On Ethereum that is another transaction and it costs gas. Do it for old unlimited approvals on contracts you do not recognise. Leave the allowance only if you will trade that pair again soon.

The next step after the trade

When the swap is done, clear spenders you will not use again. The steps are in how to revoke token approvals. Before the first approval on a new ticker, verify the contract.

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 trade what is a token approval and why does it matter?

Ethereum tokens do not move because you clicked Swap. The token contract checks an allowance.

Does Solana ask for an approval?

Not in the ERC-20 sense. A Solana swap is one signed transaction. The wallet preview is the check.

Can an approval drain my ETH?

An ERC-20 approval spends that token, not your ETH. Gas is paid in ETH separately. A malicious spender can still take the approved token up to the allowance.

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