API Reference
Withdraw
Build the calls to withdraw an asset amount from a Morpho vault on Base in one step, with an explicit slippage bound.
Morpho vaults only (
withdrawalMode: "synchronous"). Sending an Upshift vault to POST /lend/withdraw returns 400. For Upshift, use Request Withdraw.estimatedClaimDate because there is no queue or claim step.
Withdrawals still depend on available liquidity.
Body Parameters
The approved ID from discovery.
Required integer,
0 through 9999. Explicit 0 means zero tolerance. 50 means 0.5%. The allowed maximum is not a recommendation; obtain the user’s chosen tolerance.earn() and attribution from Call the API.
Response
The response is the standard batch envelope described in Execute Calls in a Wallet:version, from, chainId, and ordered calls[], plus atomicRequired and capabilities when the plan needs them.
The example response shows the envelope shape for a single-call withdrawal. The call target and calldata are placeholders: use the values the API returns, which may include more than one call and a target other than the vault address.