prepare_action
Build unsigned transactions for GBLIN vault operations: mint with ETH/WETH/USDC, redeem in kind, exit to ETH/USDC, or bid. Generates ordered steps to simulate then send from the wallet.
Instructions
Build the unsigned transactions for any operation on the GBLIN vault, in the order to send them. Actions: mint_with_eth (amount in ETH), mint_with_weth (amount in WETH), mint_with_usdc (amount in USDC, through the Zap), redeem_in_kind (amount in shares; pro rata basket tokens, no fee, no price feed), exit_to_eth (amount in shares, through the Zap, all or nothing), exit_to_usdc (amount = the USDC you need), bid (trade with the rebalancing auction; row optional, the largest gap by default). Every output bound is non-zero and every step through the vault or the Zap carries its gas limit. Nothing is signed or sent: simulate the steps with preview_steps, then send them from the wallet.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| row | No | bid only: the basket row to bid on. Default: the row with the largest gap. | |
| action | Yes | The operation to prepare. | |
| amount | No | Decimal amount. Unit depends on the action (see the description). Not used by bid. | |
| wallet_address | Yes | The wallet that will sign and receive. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| next | No | ||
| steps | Yes | Transactions to send in order. | |
| action | Yes | ||
| wallet | No | ||
| expected | No | What the operation should deliver, with the minimums applied. | |
| warnings | No |