0xcalldata

ERC-4626 function

withdraw(uint256,address,address)

Withdraws an exact underlying asset amount by burning ERC-4626 vault shares.

Selector
0xb460af94
Mutability
nonpayable

Generate withdraw calldata

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

uint256
address
address
calldata100 bytes
sel0xb460af94
withdraw(uint256,address,address)
0x0000000000000000000000000000000000000000000000000000000000000f4240
assets · uint256 =1000000
0x200000000000000000000000002222222222222222222222222222222222222222
receiver · address =0x22222222…222222
0x400000000000000000000000001111111111111111111111111111111111111111
owner · address =0x11111111…111111

How withdraw works

The vault sends exactly assets to receiver and determines how many shares must be burned from owner.

Parameters

NameSolidity typeMeaning
assetsuint256Exact underlying asset amount to withdraw.
receiveraddressAddress that should receive the underlying assets.
owneraddressAccount whose vault shares should be burned.

Return value

The number of vault shares burned.

uint256 shares

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

View all ERC-4626 functions →