GetAccountCurrencyLoans
Retrieves currency loan information for a specific account, optionally filtered by currency.
Request
GET /nxt?requestType=getAccountCurrencyLoans
All endpoints use port 22024 by default.
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
account | string | Account ID or SHAMWARI address | Yes |
currency | long | Filter by currency ID | Optional |
height | int | Block height for historical query | Optional |
includeCurrencyInfo | boolean | Include currency metadata | Optional |
includeLoans | boolean | Include active loan details | Optional |
Response
{
"accountCurrencyLoans": [
{
"account": "1234567890",
"accountRS": "SHAMWARI-ABCD-EFGH-IJKL-MNOPQ",
"currency": "987654321",
"unitsQNT": "5000000000",
"height": 250
}
]
}
Example
curl "http://localhost:22024/nxt?requestType=getAccountCurrencyLoans&account=SHAMWARI-ABCD-EFGH-IJKL-MNOPQ"