0xcalldata

ERC-4626 function

mint(uint256,address)

Mints an exact number of ERC-4626 vault shares by depositing underlying assets.

Selector
0x94bf804d
Mutability
nonpayable

Generate mint calldata

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

uint256
address
calldata68 bytes
sel0x94bf804d
mint(uint256,address)
0x0000000000000000000000000000000000000000000000000000000000000f4240
shares · uint256 =1000000
0x200000000000000000000000002222222222222222222222222222222222222222
receiver · address =0x22222222…222222

How mint works

The caller requests exactly shares; the vault determines how many assets must be supplied.

Parameters

NameSolidity typeMeaning
sharesuint256Exact number of vault shares to mint.
receiveraddressAddress that should receive the shares.

Return value

The amount of underlying assets deposited.

uint256 assets

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

View all ERC-4626 functions →