Numiscue An independent archive of digital-asset mechanics · fourteen records · checked August 2026

Guide 12 · Method · Allowance, permit and delegate

What a token approval lets a contract take, and for how long

EIP-20 specification page on eips.ethereum.org, headed ERC-20: Token Standard with a Final status badge, authors Fabian Vogelsteller and Vitalik Buterin, created 2015-11-19, and its table of contents
The EIP-20 specification on eips.ethereum.org, source of the approve, allowance and transferFrom wording quoted on this page.
November 2026

Approving a token writes one number into the token’s contract: how much a named address, the spender, may move out of your balance. The approval moves nothing at the moment you sign it. Under the original ERC-20 rules that number carries no end date — it stays until the spender uses it up or you overwrite it, which is why an approval granted for one swap can still be live long after the app is forgotten.

Everything else on this page follows from where that number lives and who is allowed to change it. Ethereum-style tokens keep it per owner and per spender inside each token contract; Solana’s token program keeps a single delegate slot on each token account. Signed “permits” and the Permit2 contract change how the number gets written, and in Permit2’s case add an expiry.

approve, allowance and transferFrom

EIP-20, the 2015 document that defines ERC-20, gives the permission three moving parts. approve(spender, value) “allows _spender to withdraw from your account multiple times, up to the _value amount.” allowance(owner, spender) “returns the amount which _spender is still allowed to withdraw from _owner.” And transferFrom(from, to, value) is the call the spender later makes; the standard describes it as a “withdraw workflow, allowing contracts to transfer tokens on your behalf.”

Two words in that first quotation carry most of the risk. “Multiple times” means the permission is a budget, spent down call by call, and not a single payment. “Withdraw” means the spender pulls; you are not asked again when it does. The timing, the destination and the amount of each pull up to the remaining allowance are decided by the spender’s code. If that spender is a contract, what it will do with the budget is whatever its code — and, for an upgradeable contract, whoever controls upgrades — makes it do.

The allowance is scoped tightly in one direction. It belongs to one token contract on one chain: approving USDT on Ethereum creates an entry in that contract’s storage and nowhere else, so the same ticker on BNB Smart Chain or TRON, which are separate contracts as the token standard guide explains, is untouched. TRC-20 copies the same three functions, so the same logic holds inside TRON’s USDT contract. Native coins — ETH, BNB, TRX — sit outside any token contract and cannot be reached through a token allowance at all.

Each successful approve must emit an Approval event, which is what lets block explorers and wallet tools list the approvals an address has granted and then query how much of each remains.

What an “unlimited” approval is in the contract

The allowance is a 256-bit unsigned integer, and “unlimited” is just its maximum value, 2256 − 1. Apps request it so that a user approves once and never sees the prompt again for that token. Some implementations go further and treat the maximum as a special case. OpenZeppelin’s ERC-20 contract, a widely used open-source library, documents that if the value “is the maximum uint256, the allowance is not updated on transferFrom. This is semantically equivalent to an infinite approval.” In such a token the budget never visibly shrinks, however much is moved.

Changing an allowance has its own wrinkle. EIP-20 says a fresh approve “overwrites the current allowance” rather than adding to it. The standard also flags a race: a spender who sees you lowering its allowance from 100 to 50 could spend the 100 first and then the new 50. The text asks wallet interfaces to set the allowance to 0 before setting a new value, but says the contract “shouldn’t enforce it”. Tether’s Ethereum contract enforces it anyway. Its verified source on Etherscan contains require(!((_value != 0) && (allowed[msg.sender][_spender] != 0))), with a comment telling callers to reduce the allowance to zero first. Changing an existing non-zero USDT approval to another non-zero number therefore fails; it takes two transactions, the first to 0.

Does a token approval expire?

Under EIP-20, no. The standard has no field for time at all, so an allowance ends only when it is spent down to zero or replaced. Closing a website, disconnecting a wallet from an app or deleting the app changes nothing in the token contract.

Expiry exists only where something newer adds it:

Where a time limit applies, per the specifications linked on this page
MechanismWhat carries a time limitWhat happens to the allowance afterwards
EIP-20 approveNothingStays until spent or overwritten
EIP-2612 permitThe signature, through its deadlineOnce submitted, the result is an ordinary EIP-20 allowance with no expiry
Permit2 AllowanceTransferThe allowance itself, through an expiration timestampInvalid after expiry; the one-time approval of Permit2 on the token remains
Permit2 SignatureTransferThe signature, through a deadline and single-use nonceNo standing allowance is left once the transfer executes
ERC-8255 (Draft, May 2026)Approvals by default, after a token-set maximum durationProposal only; applies to tokens that choose to implement it

The deadline in EIP-2612 is easy to misread. It limits how long the signed message can be submitted; the standard notes that the deadline can be set to the maximum value “to create Permits that effectively never expire.” Once someone submits it, what lands in the contract is the same open-ended allowance an approve call would have produced. ERC-8255, created on 6 May 2026 and still marked Draft, starts from the same complaint in its motivation: allowances “remain valid until explicitly changed, creating a durable authorization that can be used long after the user has forgotten the original interaction.” Until a token adopts something like it, that description is accurate for the tokens most people hold.

Approving by signature: EIP-2612 permit and Permit2

EIP-2612, marked Final, was written because plain approve has to be sent as a transaction by the owner, which needs the chain’s native coin for gas and adds a second step before any app can use the tokens. Its permit function lets the owner “modify the allowance mapping using a signed message” instead. Anyone can submit that signed message and pay the gas. A nonce per owner stops the same signature being replayed.

The practical consequence runs the other way from what people expect. Because a permit is a signature and not a transaction, a wallet shows it as a message to sign, with no fee and no on-chain record at the moment you sign. The allowance appears only when the holder of the signature submits it. A signature request naming a token, a spender and a value is an approval request, even though it looks like a login prompt. It only works for tokens that implement permit; USDT on Ethereum does not, as its verified source contains no such function.

Permit2, a contract published by Uniswap Labs, extends the idea to any ERC-20. The user first gives Permit2 itself an ordinary approval on the token — Uniswap’s documentation suggests users can choose a maximum approval here “to maximize Permit2 utility”. From then on, individual apps receive permissions inside Permit2 through signatures. Its AllowanceTransfer module stores an amount and an expiration per spender; its SignatureTransfer module authorises one transfer, after which nothing remains. The open-ended approval has not disappeared, but it now points at Permit2, and the narrower, time-bound permissions sit one layer further in.

Solana: one delegate per token account

Solana’s token program handles the same need with a different shape. Each token account has a delegate field and a delegated_amount field. The Approve instruction, in the program’s own words, gives a delegate “the authority over tokens on behalf of the source account’s owner”, and the processor writes both fields at once.

Reading the program source shows four behaviours, most of them unlike ERC-20:

  • There is one slot. Approving a second delegate replaces the first, along with its amount.
  • The amount counts down. A transfer by the delegate to another account subtracts from delegated_amount, and when it reaches zero the delegate field is cleared automatically; there is no special “never decrement” value.
  • Revoke sets the delegate to none and the amount to zero in a single instruction signed by the owner.
  • Transferring ownership of the token account clears the delegate as well, and a frozen account blocks both the owner and the delegate.

Like ERC-20, the Solana delegation carries no time limit. Because it sits on a token account, a wallet holding the same token in several accounts can have different delegates on each.

Checking and revoking an allowance

An allowance is public. allowance(owner, spender) is a read-only call anyone can make for free, and the logged Approval events show which spenders to ask about. On Solana the delegate and remaining amount are fields of the token account and appear in any explorer view of that account.

Revoking is a write. On Ethereum-style chains it means calling approve(spender, 0) from the owning address, which is a transaction paid in the chain’s native coin — ETH, BNB, or TRON resources, as set out in which coin pays the fee. For Permit2 there are two layers: the per-app allowance inside Permit2, which expires on its own schedule, and the token-level approval of Permit2, which ends only through approve(permit2, 0). On Solana it is the Revoke instruction, paid in SOL.

Revoking stops future pulls and nothing else. Tokens a spender has already moved with transferFrom are gone from the allowance and from your balance; the contract keeps no undo. Lowering an allowance to zero also costs the same kind of fee as granting it, so a dust balance in a token you no longer care about may not justify the transaction. Large balances behind a maximum approval to a contract you no longer use are the situation ERC-8255’s motivation describes.

Sources read on 8 November 2026: EIP-20: Token Standard (approve, allowance, transferFrom, the Approval event and the note on setting allowances to 0); ERC-2612: Permit Extension for EIP-20 Signed Approvals (Final; deadline and nonces); ERC-8255: Expiring Token Approvals (Draft, created 6 May 2026); OpenZeppelin Contracts 5.x, ERC-20 API (infinite allowance); Uniswap, Permit2 overview; Tether USDT contract source on Etherscan; Solana token program source, instruction definitions and processor. Implementations other than those named can treat allowances differently; the contract of the specific token is the final word.