Find holders outside a range

Use this query to find holders of a token who have greater than certain amount or less that a certain amount

By Divyasshree N · saved 30 January 2024 · run 11 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: archive) {
    TokenHolders(
      tokenSmartContract: "0x0fcbd68251819928c8f6d182fc04be733fa94170"
      date: "2024-01-29"
      where: {any: [{Balance: {Amount: {gt:"100"}}}, 
      {Balance: {Amount: {lt: "20"}}}], Balance: {Amount: {gt: "0"}}}
      orderBy: {descending: Balance_Amount}
      limit: {count: 10}
    ) {
      Balance {
        Amount
      }
      Holder {
        Address
      }
      Currency {
        Name
        Symbol
      }
    }
  }
}

Similar queries