curl -X POST "https://api.trusset.org/lending-stocks/api/positions/{marketId}/repay" \ -H "X-API-Key: trusset_your_key_here" \ -H "Content-Type: application/json" \ -d '{"loanId": 5, "amount": "1000", "useRelayer": true}'
{ "success": true, "data": { "txHash": "0xabc...def", "loanId": 5, "repaidAmount": "1000" } }
Repay debt on a loan (interest first, then principal)