top 2000 holders

Returns 2000 balance updates on Ethereum, where currency smart contract is 0x5a98…1b32 and block date after 2023-02-01, sorted by balance, highest first: balance update address and sum of balance update amount.

By yannj · saved 5 October 2023 · run 28 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: eth) {
    BalanceUpdates(
      orderBy: {descendingByField: "Balance"}
      limit: {count: 2000}
      where: {Currency: {SmartContract: {is: "0x5a98fcbea516cf06857215779fd812ca3bef1b32"}}, Block: {Date: {after: "2023-02-01"}}}
    ) {
      BalanceUpdate {
        Address
      }
      Balance: sum(of: BalanceUpdate_Amount, selectWhere: {gt: "0"})
    }
  }
}

Similar queries