Build a vault deposit or withdrawal
build_vault_transactionRead-only
Build (and simulate) the calls for a deposit, withdrawal or redemption, for the user's own wallet to sign. Smart wallets send calls as one batch; plain wallets sign the returned permit. Nothing is signed or sent here.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | Vault id, e.g. "dollar" | |
| action | Yes | ||
| amount | Yes | USDC for deposit/withdraw, shares for redeem; "max" withdraws everything | |
| account | Yes | The signing wallet | |
| receiver | No |