Skip to main content

GetActiveLoans

Retrieves active loans with optional filtering by account and currency.

Request​

GET /nxt?requestType=getActiveLoans

All endpoints use port 22024 by default.

Parameters​

NameTypeDescriptionRequired
accountstringAccount ID or SHAMWARI addressNo
currencystringCurrency IDNo
firstIndexintPagination startNo
lastIndexintPagination endNo
includeCurrencyInfobooleanInclude currency informationNo

Response​

{
"activeLoans": [
{
"id": 1234567890123456789,
"account": "1234567890123456789",
"accountRS": "SHAMWARI-ABCD-EFGH-IJKL-MNOPQ",
"currency": 9876543210123456789,
"unitsQNT": 1000000,
"amountQNT": 500000000,
"interestRate": 5,
"issuanceHeight": 100000,
"repaymentHeight": 110000,
"funded": true,
"repaid": false,
"rescued": false,
"defaulted": false
}
],
"errorCode": 0,
"errorDescription": ""
}

Example​

curl "http://localhost:22024/nxt?requestType=getActiveLoans&account=SHAMWARI-ABCD-EFGH-IJKL-MNOPQ&firstIndex=0&lastIndex=10"