repay
Repay borrowed assets to a JustLend market, either partially or fully. Use 'max' for full repayment; requires prior approval for TRC20 tokens.
Instructions
Repay borrowed assets to a JustLend market. For TRC20 markets, must have approved underlying first. Use amount='max' to repay the full outstanding borrow. Typical cost: 80,00090,000 energy + 280320 bandwidth (TRX costs less than TRC20).
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": {
"market": "<market>",
"amount": "<amount>"
},
"name": "repay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount to repay (e.g. '500'), or 'max' for full repayment | |
| market | Yes | jToken symbol (e.g. 'jUSDT', 'jTRX') | |
| network | No | Network. Default: mainnet |