Token Holders at given Block

Returns balance updates on Ethereum, where currency smart contract is 0x43d7…fb59 and block number is at most 17972533, sorted by balance, highest first: balance update address and sum of balance update amount.

By manager star · saved 6 September 2023 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery($token: String!, $leBlockNumber: String!) {
  EVM(dataset: combined, network: eth) {
    BalanceUpdates(
      orderBy: {descendingByField: "Balance"}
      limit: {}
      where: {Currency: {SmartContract: {is: $token}}, Block: {Number: {le: $leBlockNumber}}}
    ) {
      BalanceUpdate {
        Address
      }
      Balance: sum(of: BalanceUpdate_Amount, selectWhere: {gt: "0"})
    }
  }
}

Variables

{"token":"0x43d7e65b8ff49698d9550a7f315c87e67344fb59", "leBlockNumber": "17972533"}

Similar queries