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.

vault:withdraw <assets> <from> <vault>
NameTypeDescription
assetscommand | numberAmount of the underlying asset to withdraw in base units (wei), or the keyword max for everything available
fromcommandKeyword from
vaultaddressERC-4626 vault address
NameTypeDescription
--toaddressReceiver of the withdrawn assets (defaults to the connected account)
# Withdraw 50 WXDAI worth of the sDAI position on Gnosis
vault:withdraw 50e18 from 0xaf204776c7245bF4147c2612BF6e5972Ee483701