Skip to content

vault:withdraw

Withdraw an exact amount of the underlying asset from an ERC-4626 vault, burning the required shares. Pass max as the amount to withdraw everything available. For ERC-7540 asynchronous vaults use vault:request-redeem instead.

⚗️ Experimental — available at next.evmcrispr.com.

Supports runtime fields inside smart blocks. Use explicit @helper! expressions or captured outputs; other fields are evaluated at build time.

vault:withdraw <assets> <from> <vault>
NameTypeEvaluationDescription
assetscommand | numberRuntime in smart blocksAmount of the underlying asset to withdraw in base units (wei), or the keyword max for everything available
fromcommandBuild timeKeyword from
vaultaddressBuild timeERC-4626 vault address
NameTypeEvaluationDescription
--toaddressRuntime in smart blocksReceiver of the withdrawn assets (defaults to the connected account)
# Withdraw 50 WXDAI worth of the sDAI position on Gnosis
vault:withdraw 50e18 from 0xaf204776c7245bF4147c2612BF6e5972Ee483701