Skip to main content
Prepares the approval transaction that must be executed before withdrawing vault shares. This grants the atomic queue contract permission to transfer shares on behalf of the user.

Import

Usage

Parameters

Return Type

Examples

Withdrawal Flow

The complete withdrawal process requires two transactions:
The approval is typically only needed once per vault. After approval, subsequent withdrawals only require the prepareWithdrawTxData step.

Smart Wallet Batching

For smart wallets, you can batch both transactions into a single user confirmation:

Error Handling