Assemble one selector and two full argument words.
LET’S PICTURE IT
A labeled form contains a destination field and an exact unscaled amount.
SEE IT FOR YOURSELF
Build a transfer call from typed fieldsStep 1 / 4
The standard transfer interface takes an address and a raw integer amount. This diagram uses address one and amount one hundred.
The standard transfer interface takes an address and a raw integer amount. This diagram uses address one and amount one hundred.Keccak-256 of the canonical signature supplies the first four bytes. The transfer selector is a9059cbb.An address is twenty bytes. Standard ABI encoding adds twelve zero bytes on the left to fill one thirty-two-byte word.The integer one hundred is hex 64, left-padded in word one. Selector plus two words produces sixty-eight bytes of standard calldata.
Animated local teaching model. No wallet, RPC or live blockchain data. Some labels and hashes are abbreviated for readability.
Choose simple public values
Use address one and raw amount one hundred. The exercise does not query a token, infer decimals or submit a transfer.
Encode the destination word
The twenty-byte address is left-padded with twelve zero bytes. Keep it distinct from fixed bytes20, whose standard ABI alignment differs.
Encode the integer word
Decimal one hundred is hex 64. Left-pad that value to a thirty-two-byte uint256 word and place it after the address word.
Verify the complete request
Prefix selector a9059cbb and count sixty-eight total bytes. Decode under the same declaration and recover the exact address and raw amount.
Your acceptance target
function transfer(address to, uint256 amount)
arguments: ["0x0000000000000000000000000000000000000001","100"]
selector: 0xa9059cbb
arguments begin at calldata byte 4
word 0 · argument offset 0 bytes
0x0000000000000000000000000000000000000000000000000000000000000001
word 1 · argument offset 32 bytes
0x0000000000000000000000000000000000000000000000000000000000000064
Use only local examples and public sample addresses. State the assumptions and limits alongside the result.