0xcalldata

ERC-20 function

transfer(address,uint256)

Moves an ERC-20 amount from the transaction caller to a recipient address.

Selector
0xa9059cbb
Mutability
nonpayable

Generate transfer calldata

Edit the example inputs to rebuild the bytes instantly in your browser. Nothing is sent and no transaction is submitted.

address
uint256
calldata68 bytes
sel0xa9059cbb
transfer(address,uint256)
0x000000000000000000000000002222222222222222222222222222222222222222
to · address =0x22222222…222222
0x200000000000000000000000000000000000000000000000000de0b6b3a7640000
amount · uint256 =1000000000000000000

How transfer works

The sender is msg.sender, so it is not encoded as an argument. Calldata contains the recipient followed by the raw integer amount.

A successful standards-compliant transfer emits a Transfer event. The event and execution result are not part of the calldata payload.

Parameters

NameSolidity typeMeaning
toaddressAddress that should receive the tokens.
amountuint256Raw token amount in the contract’s base units.

Return value

A boolean success value. ERC-20 callers must handle false rather than assuming it can never occur.

bool result

Return data comes back after execution and is not included in the calldata above.

View all ERC-20 functions →