prepare_action
Builds unsigned transactions for GBLIN vault operations such as mint, redeem, exit, and bid, returning ordered steps with gas limits for the caller to sign and send.
Instructions
Builds the unsigned transactions for an operation on the GBLIN vault, in the order they are sent. 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 needed), 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: the steps are returned to the caller.
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 |