GetAccountCurrencyCount
Retrieves the number of currency holdings for a specific account, optionally filtered by currency and height.
Request
GET /nxt?requestType=get-accountCurrencyCount
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
account | string | Account ID or NXT address | Yes |
currency | long | Currency ID (optional - returns count for all currencies if omitted) | Optional |
height | int | Blockchain height for historical query | Optional |
includeCurrencyInfo | boolean | Include currency metadata | Optional |
Response
{
"numberOfAccounts": 150
}
Response Fields Description
| Field | Type | Description |
|---|---|---|
numberOfAccounts | int | Number of currency accounts held |
Example
# Get currency count for an account
curl "http://localhost:22024/nxt?requestType=get-accountCurrencyCount&account=1234567890"
# Get count with currency filter
curl "http://localhost:22024/nxt?requestType=get-accountCurrencyCount&account=1234567890¤cy=987654321"