count of token holders for a token using token holders api

Returns token holders on Ethereum, where balance amount is at least 0: count.

By Aarthy · saved 12 February 2024 · run 13 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: archive, network: eth) {
    TokenHolders(
      date: "2024-02-01"
      tokenSmartContract: "0xdAC17F958D2ee523a2206206994597C13D831ec7"
      where: { Balance: { Amount: { ge: "0" } } }
    ) {
      classic: count(
        distinct: Holder_Address
        if: { Balance: { Amount: { gt: "1000000" } } }
      )
      pro: count(
        distinct: Holder_Address
        if: { Balance: { Amount: { gt: "100000", le: "1000000" } } }
      )
      growing: count(
        distinct: Holder_Address
        if: { Balance: { Amount: { gt: "1000", le: "100000" } } }
      )
    }
  }
}

Similar queries