List of addresses which get maximum balance change over date

Returns 100 balance updates, where currency smart contract is 0xdac1…1ec7 and block date is 2023-01-22, sorted by change, highest first: balance update address and sum of balance update amount.

By Aleksey · saved 14 October 2023 · run 6 times · Bitquery API v2

What it returns

Filters

The query

query($currency: String!, $date: String!) {
  EVM(dataset: archive) {
    BalanceUpdates( 
      orderBy: {
        descendingByField:  "change"
      }
      limit: {count: 100}
      where: {
        Block: {
          Date: {
            is: $date
          }
        }
        Currency: {
          SmartContract: {
            is: $currency
          }
        }
      }
    ) {
      BalanceUpdate {
        Address
      }
    	change: sum(of: BalanceUpdate_Amount selectWhere: {gt: "0"})
    }
	}
}

Variables

{
  "currency": "0xdac17f958d2ee523a2206206994597c13d831ec7",
  "date": "2023-01-22"
}

Similar queries