Prepare: Roll a loan over
gage_prepare_rollPrepare rolling a running loan over: a new loan of the same size on the same pledge repays it in full, and the wallet adds the difference (the old loan's cost and the new fee) or keeps what is over. 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_roll"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| term | No | The new loan's term in seconds, one gage_capabilities lists; the loan's own term when omitted | |
| engine | No | The engine; the current core when omitted, the loan's own core for a loan in a lend asset | |
| loanId | Yes | ||
| wallet | Yes |