GetOverdueLoans
Retrieves currency loans that are past their repayment height but not yet repaid or rescued.
Request
GET /nxt?requestType=getOverdueLoans
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
account | string | Filter by borrower account | Optional |
currency | long | Filter by currency | Optional |
includeLoanInfo | boolean | Include loan details | Optional |
firstIndex | int | Pagination start index | Optional |
lastIndex | int | Pagination end index | Optional |
Response
{
"overdueLoans": [
{
"loan": "55555",
"account": "1234567890",
"chain": 1,
"unitsQNT": "1000000000",
"interestRate": 5,
"collateralTotem": "11111",
"totemQNT": "500000000",
"isFunded": true,
"raisedUnitsQNT": "500000000",
"creationHeight": 1000,
"issuanceHeight": 1000,
"repaymentHeight": 2000,
"repaidAmountQNT": "0",
"owedAmountQNT": "1050000000",
"isRepaid": false,
"isRescued": false
}
]
}
Example
# Get overdue loans for a currency
curl "http://localhost:22024/nxt?requestType=getOverdueLoans¤cy=987654321&includeLoanInfo=true"