Prepare: close a gAIX short through the pool
gaix_short_closeUnsigned transactions to close a gAIX short through Goldstein's pool (amount: gAIX to buy back, or all: true): the gAIX is bought with the USDG held, any shortfall from the wallet, and what is left comes back. Goes through while the hook takes at most 4%; over that, or for a sliver of debt, use gaix_short_close_in_kind. While the desk is paused a close is whole. Simulated from the wallet.
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": {
"wallet": "<wallet>"
},
"name": "gaix_short_close"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | true closes or takes out everything | |
| amount | No | gAIX to buy back, as a decimal string | |
| wallet | Yes | The wallet's address (0x...); the transactions are built for it to sign |