An ERC-20 token approval transaction usually fails or stays pending because you lack the network’s native token for gas, an earlier transaction is still pending, the token rejects the allowance change, or your wallet is on the wrong network. Approval is an ordinary on-chain transaction sent to the token contract, so the network must process it before a spender can use the allowance.
ERC-20 approvals and transaction order
An ERC-20 approval calls the token contract’s approve function with a spender address and an allowance amount. Your wallet signs and sends the transaction, the network executes it, and the contract records how much that spender may transfer on your behalf. Seeing an approval request in your wallet does not mean the contract has recorded it yet.
A swap interface may ask for approval before it offers an order signature. On cowswap, a decentralized exchange interface for signed trade intents matched by solvers in batch auctions, approval is the only gas-paid step before the gasless order signature. If approval fails, the swap stops before an order exists.
Say you send an Ethereum transfer from MetaMask, then try to approve USDT for Uniswap while the transfer is pending. The transfer has the lower nonce; the approval has the next one. Transactions from your address execute in nonce order, so the approval stays queued until the transfer confirms or another transaction with the transfer’s nonce replaces it and confirms. Raising the approval’s fee cannot make it pass the earlier transaction. A queued approval may never have reached the token contract.
These causes produce different results:
- Too little native gas token: Approval needs the network’s native token to pay its transaction fee, even when you already hold plenty of the token you want to trade.
- An earlier pending transaction: Its lower nonce holds the approval in the queue. The approval may be valid but unable to execute yet.
- USDT’s allowance rule: On Ethereum, USDT reverts a direct change from one nonzero allowance to another. An existing allowance must be set to zero before a new positive allowance can be recorded.
- The wrong network: Your wallet may reject a request for another chain, or an approval on one network may leave the allowance needed on another network untouched.
Think of the nonce as a numbered queue ticket: the approval’s ticket comes after your earlier transaction’s ticket. The comparison stops there; the token contract also checks its own rules when the approval finally executes. When an approval stays pending, identify the earliest pending transaction from your address before sending another approval that would join the same queue.
Related approval questions
How do I cancel a stuck approval?
A pending approval can be displaced by a new transaction from the same wallet using its nonce and a fee the network accepts. MetaMask’s cancel action attempts this kind of replacement. Once an approval has confirmed, cancellation is no longer possible; changing its allowance requires another transaction.
Do I need to approve again on every network?
Yes, when a spender needs an ERC-20 allowance on another network. An Ethereum approval is recorded by a token contract on Ethereum; it does not grant that spender an allowance on a different chain. The token contract and spender address both matter.
Allowance safety and cleanup
Is an unlimited approval safe?
An unlimited approval gives the spender continuing access to your token balance as it changes. That increases your exposure if the spender contract is compromised or misused. A smaller allowance limits that permission but may require another approval for a later trade.
How do I revoke an old approval?
Revoke an old approval by setting that spender’s allowance to zero in the token contract on the same network. Revocation is an on-chain transaction that costs native gas and changes future spending permission; it cannot reverse transfers already made.
Top comments (0)