Prepare withdrawal transaction
Returns ABI-encoded calldata for a vault withdrawal. Identify the vault by its BoringVault contract address. The withdrawal mode is selected server-side per caller: eligible callers receive an atomic withdrawal that settles in a single transaction with no prior share approval, while all other callers submit a withdrawal order and must have pre-approved the WithdrawQueue to spend vault shares.
Query Parameters
Vault share amount to redeem, in share token base units (decimal string)
"1000000000000000000"
Slippage tolerance for the minimum assets accepted, in basis points (0-10000). Defaults to 0 (accept exactly the quoted rate). Supported only for accounts enabled for direct settlement; every other withdrawal is priced when the order is processed and carries no minimum-assets floor, so passing this returns 400 rather than silently ignoring it.
0 <= x <= 100000
Response
How long this withdrawal is expected to take to settle, as a duration string. Returned only for accounts that publish size-based settlement estimates, and only for withdrawals that go through the queue — it is absent otherwise. The estimate reflects the order size against currently available liquidity at the time of the request, so it is indicative rather than a guarantee. When the estimate cannot be computed, this field is absent and estimatedWithdrawalLatencyError is returned instead.
"86400s"
Present in place of estimatedWithdrawalLatency when an estimate applies to this withdrawal but could not be computed. The transaction is unaffected and can be submitted as usual. The condition is temporary: request the withdrawal again later for an estimate. The slowest estimated settlement time is 30 days.