Skip to main content

GetAccountTotems

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

Request

GET /nxt?requestType=getAccountTotems

All endpoints use port 22024 by default.

Parameters

NameTypeDescriptionRequired
accountstringAccount ID or SHAMWARI addressYes
totemlongFilter by Totem IDOptional
heightintBlock height for historical queryOptional
includeTotemInfobooleanInclude Totem metadata in responseOptional

Response

{
"accountTotems": [
{
"account": "1234567890",
"accountRS": "SHAMWARI-ABCD-EFGH-IJKL-MNOPQ",
"totem": "987654321",
"unitsQNT": "1000",
"unconfirmedUnitsQNT": "100",
"height": 250
}
]
}

Response Fields

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

Error Codes

CodeDescription
3Unknown account

Example

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