Prepare: Cash a loan out
gage_prepare_cash_outPrepare cashing a running loan out: its whole collateral is sold through an aggregator, the loan repaid from the sale, and the rest less gage's 0.5% fee paid to the wallet, in one transaction. Returns the next unsigned transaction and a review link; never signs.
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>",
"loanId": "<loanId>"
},
"name": "gage_prepare_cash_out"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| engine | No | The engine; the current core when omitted, the loan's own core for a loan in a lend asset | |
| loanId | Yes | ||
| minNet | No | The least you accept to receive, raw units of the loan's asset (USDG: 6 decimals): the cash-out is refused under it, and its transaction reverts under it | |
| wallet | Yes | ||
| maxSlippageBps | No | Most the net you receive may fall below the quote, in bps of it; 50 when omitted |