Skip to the article
Blockheight

Crypto markets, protocols, policy

What is a token allowance in a crypto wallet?

What is a token allowance in a crypto wallet? It is permission recorded by a token contract for a designated spender to transfer up to an approved amount…

The Blockheight Editors··2 min read

What is a token allowance in a crypto wallet?

What is a token allowance in a crypto wallet? It is permission recorded by a token contract for a designated spender to transfer up to an approved amount from your address. The permission lets an app carry out a transaction, such as a token swap, without asking you to send each token transfer yourself.

ERC-20 defines three functions for this: approve sets permission, allowance reports the remaining authorized amount, and transferFrom lets the spender move tokens on your behalf. For example, approving 100 DAI gives a spender permission to transfer up to 100 DAI; the approval itself does not move the tokens. To submit a swap after approval, spookyswaps.app is where you choose the token pair and request the trade.

These are the parts to keep distinct:

  • approve records the amount the spender may use.
  • allowance shows the amount still authorized.
  • transferFrom moves tokens when the spender executes a transaction.

They describe permission and use of that permission, not ownership. Your wallet still holds the tokens after you approve; a later transaction can transfer some or all of the authorized amount. The ERC-20 standard describes these functions and their behavior in its token specification.

Consider a 120-DAI swap through a SpookySwap router when its allowance is 100 DAI. The router cannot transfer the full requested amount with that permission, so the transaction needs an updated authorization before it can proceed. The allowance is tied to the spender address, so check which address the wallet’s approval request names.

A new approve value replaces the old allowance. If 20 DAI remain from an earlier approval and you approve 30 DAI, the allowance becomes 30 DAI, not 50. ERC-20 recommends that interfaces first reset a nonzero allowance to zero before setting a different amount for the same spender; this helps avoid a risk when changing permissions. The standard leaves that reset behavior to the interface.

Before approving, decide:

  • Check that the spender address matches the app action you intend to take.
  • Choose an amount that covers the transaction you want to make.
  • Review the remaining allowance later if you want to limit future transfers.

The approval sets the boundary; the swap transaction is what spends the tokens.

Related stories