Prepare a repayment
prepare_repayUNSIGNED transactions to repay a loan in full: a USDG approval when the payer's allowance is short, then the repayment. Anyone can repay any loan.
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": {
"loan_id": "<loan_id>"
},
"name": "prepare_repay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| from | No | payer address, to check the allowance | |
| loan_id | Yes |