The ixQueueWithdrawal method builds a transaction instruction that moves LP tokens into escrow and creates a withdrawal account — the first step in the two-phase withdrawal process.
Usage
Required Parameters
Optional Parameters
Returns
Returns { ix: TransactionInstruction, withdrawalKeypair: Keypair }.
ix — the instruction that creates the withdrawal account and moves LP tokens to escrow
withdrawalKeypair — a freshly generated keypair whose public key is the withdrawal account address. Must be passed as a signer in the transaction.
Next Step
After queuing, the vault manager calls fillWithdrawal to associate the underlying token accounts with your request. Once filled, call executeWithdrawal.
Save the withdrawalKeypair.publicKey — you need it when calling executeWithdrawal. If lost, you can recover it by querying withdrawal accounts for your vault via RPC.