This function replaces the legacy
prepareWithdrawTxData() (also known as
prepareWithdrawTransactionData()) from SDK versions prior to 0.4.2. If you
are migrating, note that the new function uses amountOffer instead of
amount, and no longer accepts slippage or deadline parameters. See the
Changelog for full
migration details.Import
Usage
Parameters
Unlike the old Teller-based withdrawal, the WithdrawQueue does not require
slippage or deadline parameters. Orders are processed by the protocol at
the current exchange rate.Return Type
- Type Definition
- Example Response
Examples
- Viem
- Wagmi
Withdrawal Flow
1
Discover account
2
Authorize Withdrawal
Check and handle account share approval:
3
Submit Withdrawal Order
Submit the order to the WithdrawQueue:
4
Wait for Processing
The WithdrawQueue processes orders. Once processed, funds are sent to your wallet automatically.
Error Handling
Related
- getVaultsByConfig - Discover account names
- prepareWithdrawal - Unified withdrawal wrapper
- prepareWithdrawalAuthorization - Unified authorization flow
- prepareApproveWithdrawOrderTxData - Approve account shares
- Withdrawals Guide - Complete withdrawal integration guide
- Deposits - Deposit into accounts