actions.prepare
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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"action": "<action>",
"wallet_address": "<wallet_address>"
},
"name": "actions.prepare"
}
}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 |