Skip to main content

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

NameTypeDescriptionRequired
accountstringAccount ID or SHAMWARI addressYes
currencylongFilter by currency IDOptional
heightintBlock height for historical queryOptional
includeCurrencyInfobooleanInclude currency metadataOptional
includeLoansbooleanInclude active loan detailsOptional

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"