Skip to main content

Vault withdraw

GET 

/v1/actions/vaults/withdraw

Build calldata for an ERC-4626 vault withdraw via the 1delta Composer. Native ETH is supported by passing receiveAsset=0x0 — the composer unwraps the vault's underlying back to ETH before forwarding to the recipient.

This endpoint targets passive ERC-4626 vaults. For Fluid's NFT-position margin vaults use /v1/actions/lending/withdraw.

Modes

  • isShares=false (default): amount is assets — the composer issues vault.withdraw(assets, receiver, owner).
  • isShares=true: amount is shares — the composer issues vault.redeem(shares, receiver, owner).

For full exits, the caller pre-resolves an upper-bound via balanceOf and passes isAll=true so the composer tolerates rounding dust on sweep.

Request

Responses

Transaction calldata + any approval(s) needed for the vault withdraw