GetAccountCurrencyCount
Returns the number of currencies held by a specific account.
Request
GET /nxt?requestType=get-account-currency-count
All endpoints use port 22024 by default.
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
account | string | Account ID or SHAMWARI address | Yes |
height | int | Block height for historical query | Optional |
Response
{
"count": 12,
"errorCode": 0,
"errorDescription": ""
}
Response Fields
| Field | Type | Description |
|---|---|---|
count | int | Number of currencies held by the account |
Error Codes
| Code | Description |
|---|---|
| 3 | Unknown account |
Example
curl "http://localhost:22024/nxt?requestType=get-account-currency-count&account=SHAMWARI-ABCD-EFGH-IJKL-MNOPQ"