Skip to main content

GetAccountCurrencies

Returns currency holdings for a specific account, optionally filtered by currency ID.

Request

GET /nxt?requestType=get-account-currencies

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 currency units held
unconfirmedUnitsQNTstringUnconfirmed currency units
heightintBlock height

Error Codes

CodeDescription
3Unknown account

Example

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