Skip to main content

GetAccountCurrencyAccounts

Returns accounts associated with a specific currency, optionally filtered by account.

Request

GET /nxt?requestType=getAccountCurrencyAccounts

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 metadata in responseOptional

Response

{
"accountCurrencies": [
{
"account": "1234567890",
"accountRS": "SHAMWARI-ABCD-EFGH-IJKL-MNOPQ",
"currency": "987654321",
"unitsQNT": "5000000000",
"unconfirmedUnitsQNT": "1000000000",
"height": 250
}
]
}

Response Fields

FieldTypeDescription
accountstringAccount ID
accountRSstringAccount Reed-Solomon address in SHAMWARI format
currencystringCurrency ID
unitsQNTstringNumber of units held
unconfirmedUnitsQNTstringUnconfirmed units
heightintBlock height

Error Codes

CodeDescription
3Unknown account

Example

curl "http://localhost:22024/nxt?requestType=getAccountCurrencyAccounts&account=SHAMWARI-ABCD-EFGH-IJKL-MNOPQ"