Skip to main content
Prepare transaction data for submitting a withdrawal order to the WithdrawQueue contract.
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.
prepareWithdrawOrderTxData() is a low-level transaction builder and does not perform allowance pre-checks. Use prepareWithdrawalAuthorization when you need approval routing.

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


Examples


Withdrawal Flow

1

Authorize Withdrawal

Check and handle vault share approval:
2

Submit Withdrawal Order

Submit the order to the WithdrawQueue:
3

Wait for Processing

The WithdrawQueue processes orders. Once processed, funds are sent to your wallet automatically.

Error Handling