Skip to main content

GetAccountTotemCount

Returns the number of Totems held by a specific account.

Request​

GET /nxt?requestType=get-account-totem-count

All endpoints use port 22024 by default.

Parameters​

NameTypeDescriptionRequired
accountstringAccount ID or SHAMWARI addressYes
heightintBlock height for historical queryOptional

Response​

{
"count": 5,
"errorCode": 0,
"errorDescription": ""
}

Response Fields​

FieldTypeDescription
countintNumber of Totems held by the account

Error Codes​

CodeDescription
3Unknown account

Example​

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