Withdraw a position
build_vault_withdrawWithdraw a whole position: back as USDC (default; its WETH is swapped) or as both WETH and USDC, with its rewards as USDC (default) or AERO. A closed position's leftovers are collected instead. Returns unsigned transactions to sign in order (and as one EIP-5792 batch), simulated from the wallet, plus a sign_url for a human owner. Nothing is sent.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| vault | No | A Panda vault address from list_vaults. Optional: the open WETH/USDC vault when left out. | |
| wallet | Yes | The wallet on Base that will sign (and that owns the positions). | |
| receive | No | USDC (default) or BOTH (WETH and USDC, no swap). | |
| rewards | No | Rewards as USDC (default) or AERO. | |
| token_id | Yes | The position id (token_id from get_wallet_positions). |