Vault deposit
GET/v1/actions/vaults/deposit
Build calldata for an ERC-4626 vault deposit. When no wrap/swap is needed the dispatcher routes directly to vault.deposit; otherwise it falls back to the 1delta Composer (wraps native ETH, handles non-trivial composition).
This endpoint targets passive ERC-4626 vaults — share tokens that mint Diesel-style shares to a recipient. For Fluid's margin vaults (NFT-position lending markets), use /v1/actions/lending/deposit instead.
Execution mode (mode query param)
auto(default) — direct whenpayAsset === underlyingand not native, otherwise composer.direct— force direct; returns 400 when not eligible (e.g. nativepayAsset).proxy— force the composer (legacy behavior).
The direct path is smaller (one call to the vault) and sidesteps the EVC indirection that the composer triggers — useful for vaults that gate on msg.sender semantics. Approval target also changes: direct → the vault; proxy → the composer.
Native deposits
Native ETH is only supported via the composer's wrap-then-deposit path (mode=proxy or auto falls back automatically). Fluid fToken vaults additionally expose a payable depositNative that skips wrapping — opt in with provider=fluid when paying with native; the dispatcher then routes to the vault directly.
Request
Responses
- 200
- 400
Transaction calldata + approval(s) for the vault deposit
Validation error