GetActiveLoans
Retrieves active loans with optional filtering by account and currency.
Request
GET /nxt?requestType=getActiveLoans
All endpoints use port 22024 by default.
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
account | string | Account ID or SHAMWARI address | No |
currency | string | Currency ID | No |
firstIndex | int | Pagination start | No |
lastIndex | int | Pagination end | No |
includeCurrencyInfo | boolean | Include currency information | No |
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"