In this track: Tokens and digital ownership
intermediate · 3 MIN READ

Token interface practice set

Distinguish identity, amounts, permissions and event layouts.

LET’S PICTURE IT

A good inventory clerk checks which register, which item, which unit and which permission before updating a record.

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.

Exercise: interpret a quantity

A token with six decimals reports 3250000 raw units. The display quantity is 3.25 tokens. The number does not establish a dollar price or make the asset native ETH.

Exercise: identify the permission

approve(spender, 100) asks to set a spending allowance under the token’s rules. transfer(recipient, 100) requests movement instead. Compare their selectors in the ABI encoder.

Exercise: distinguish an NFT

Token ID 12 in one collection differs from token ID 12 in another. Network, contract and ID supply the identity context. An image that looks the same does not collapse those records into one item.

Exercise: read a log with limits

A decoded Transfer amount is a raw integer under a chosen schema. It is not proof of the emitter’s safety or the recipient’s final human-readable balance. Keep metadata and implementation assumptions explicit.

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

A six-decimal token reports 3250000 raw units. What is its display quantity?

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.