In this track: Explore safely
beginner · 3 MIN READ

Unlimited allowances explained

A very large spending permission can expose more than the next intended payment.

LET’S PICTURE IT

A standing collection permit for every parcel is broader than permission to collect the one parcel you currently want to send.

SEE IT FOR YOURSELF
Build a transfer call from typed fieldsStep 1 / 4
Build a transfer call from typed fieldstransfer(address,uint256)Recipient: 0x0000…0001Raw amount: 100Diagram labels abbreviate addresses; the lab shows full bytes4-byte selectora9059cbbEach box is one byte; this prefix is not a 32-byte wordWord 0 · recipient address12 zero bytes20 address bytes000…0001Left padding preserves the lower-order address valueSelector4 bytesa9059cbbAddress32 bytesword 0Amount32 bytesword 1 → 0x644 + 32 + 32 = 68 bytesThe integer does not contain token decimals or market price

The standard transfer interface takes an address and a raw integer amount. This diagram uses address one and amount one hundred.

Animated local teaching model. No wallet, RPC or live blockchain data. Some labels and hashes are abbreviated for readability.

A broad number grants a broad budget

An interface may request a very large raw allowance, sometimes a maximum integer convention. The user’s intended immediate purchase may be much smaller. Read the actual spender and amount being authorized.

Implementation details matter

How an allowance is consumed or updated depends on the token and spender behavior. Some implementations treat a maximum allowance specially. Do not infer every rule merely from the phrase unlimited in a wallet interface.

Risk can persist after one use

A continuing allowance can remain after the transaction that motivated it. If the spender has vulnerable or malicious behavior, that permission may become relevant later. Closing the frontend does not remove it.

Keep the permission visible

A useful confirmation describes which token, network, spender and amount the action concerns. The ABI lesson teaches how to inspect that request. Our tool encodes example bytes only and does not modify allowances.

TURN UNDERSTANDING INTO PRACTICEOpen the ABI encoder →
QUICK CHECK · NO PRESSURE

Does an unlimited approval necessarily expire when you close the website?

Your progress stays in this browser.
Keep exploring the original referenceEthereum Improvement Proposals ↗

Original explanations by EtherTools. Examples are educational and source-linked; this site is independent of the Ethereum Foundation. Our approach.