MOG

Returns balance updates on Base, where balance update address is 0xc29d…7098 and currency smart contract is 0x4200…0006 or 0x2Da5…AF71, sorted by balance, highest first: currency name and sum of balance update amount.

By Sto · saved 5 November 2024 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: base) {
    BalanceUpdates(
      where: {
        BalanceUpdate: {
          Address: { is: "0xc29dc26b28fff463e32834ce6325b5c74fac7098" }
        }
        Currency: {
          SmartContract: {
            in: [
              "0x4200000000000000000000000000000000000006"
              "0x2Da56AcB9Ea78330f947bD57C54119Debda7AF71"
            ]
          }
        }
      }
      orderBy: { descendingByField: "balance" }
    ) {
      Currency {
        Name
      }
      balance: sum(of: BalanceUpdate_Amount, selectWhere: { gt: "0" })
    }
  }
}

Similar queries