prepare_withdraw
Prepare a fully simulated position withdrawal with a sign link. Default receive USDC; original keeps position tokens. Supply percent (1–100) OR targetUSDC. Impact above 5% requires confirmHighImpact. For two transactions, finalize the first then call again with stage=swap, tx1Signature and previous (the complete first result).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| stage | No | ||
| wallet | Yes | ||
| percent | No | ||
| receive | No | ||
| previous | No | ||
| outputMint | No | ||
| targetUSDC | No | ||
| positionMint | Yes | ||
| tx1Signature | No | ||
| confirmHighImpact | No |