Skip to the article
Token Wire

News from across crypto

Why Token Swaps Need an Approval Transaction

Token swaps often need a separate approval so a smart contract can spend a set amount of your token; knowing the steps helps you review each request.

The Token Wire Desk3 min read

Why Token Swaps Need an Approval Transaction

A token swap often needs an approval transaction first because the swap contract cannot spend your tokens until you grant permission. The approval sets how much of a token a specific contract may use. It does not make the swap itself.

Most tokens on Ethereum-style networks follow a common standard that keeps balances in your wallet. A trading app usually asks a smart contract to move tokens from that wallet and exchange them. The approval, also called an allowance, gives that contract permission to move a set amount. For a practical example of how to quickswap into an app-ready asset, see this guide. The route and the approval are separate parts of the process.

What does a token approval do?

An approval records permission on the blockchain for a contract to spend your token. Your wallet sends this request, and the token’s contract updates the allowance after the transaction is confirmed. The swap contract can then use that allowance when you submit a swap.

This is different from a signature that only confirms an action off-chain. An approval is an on-chain transaction, so it usually costs a network fee and can take time to confirm. You may need to approve each token separately, since permission for one token does not cover another.

Why do swaps use two transactions?

Many swaps use one transaction to approve spending and another to make the trade. The first sets permission; the second tells the trading contract how much to swap and under what conditions. Some tokens and apps support a signed permit that can combine permission with a later action, but it is not available in every setup.

Some apps ask for permission to spend a very large amount so you do not have to approve again later. That can save a future transaction fee, but it leaves the contract with broader permission. A smaller allowance is easier to limit, though you may have to approve again when you trade more.

  • Check that the token and spending contract match the swap you intend to make.
  • Review the approved amount, especially if the wallet offers an unlimited option.
  • Wait for the approval to confirm before submitting the swap, if the app requires it.

These checks matter because an approval gives a contract spending authority up to the allowance. It does not guarantee a good exchange rate or protect against a wrong token or contract. If the app shows an unfamiliar contract or an amount you did not expect, pause and verify the request before signing.

Can you change or remove an approval?

Often, yes: a wallet or token-management tool may let you set an allowance to a lower amount or zero. That change is another on-chain transaction and may cost a fee. Revoking permission stops future spending under that allowance, but it cannot undo a swap that has already happened.

For most readers, approving only the amount needed is the clearer choice when the app allows it. Watch the wallet prompt for the contract address and allowance, then check whether the app needs a separate approval or supports a permit. Those details show what permission the swap will use.