Skip to main content

GetTotemAccountCount

Retrieves the number of accounts holding a specific totem at a given block height.

Endpoint: GET /nxt?requestType=GetTotemAccountCount

Parameters:

  • totem (long, required): The totem ID
  • height (int, optional, default: current): Block height at which to count holders

Request Example: /nxt?requestType=GetTotemAccountCount&totem=123456789&height=1000000

Response:

{
"numberOfAccounts": 42
}

Response Fields:

  • numberOfAccounts: number - Number of accounts holding the totem at the specified height

Source: GetTotemAccountCount.java