Skip to main content

GetOverdueLoans

Retrieves currency loans that are past their repayment height but not yet repaid or rescued.

Request

GET /nxt?requestType=getOverdueLoans

Parameters

NameTypeDescriptionRequired
accountstringFilter by borrower accountOptional
currencylongFilter by currencyOptional
includeLoanInfobooleanInclude loan detailsOptional
firstIndexintPagination start indexOptional
lastIndexintPagination end indexOptional

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&currency=987654321&includeLoanInfo=true"