Prepare: repay a gAIX loan and take gAIX back
gaix_repayUnsigned transactions to repay a gAIX loan from the wallet (part, or all: true to clear it exactly) and, if asked, take gAIX back to the wallet (take_back: shares, or "all"). Repaying always works, weekends included; taking gAIX back while a loan stays open pauses every weekend and whenever a basket price is out of date, and keeps the loan under three quarters of its limit. 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_repay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| all | No | true repays everything owed | |
| amount | No | USDG to repay, as a decimal string, like "100" | |
| wallet | Yes | The wallet's address (0x...); the transactions are built for it to sign | |
| take_back | No | gAIX to take back, in shares as a decimal string, or "all" |