Common Token Holder

Returns 10 balance updates, where currency smart contract is 0xfa3e…965e or 0x0645…6fb8: balance update address and sum of balance update amount.

By gaurav · saved 26 October 2023 · run 5 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: archive) {
    BalanceUpdates(
      limit: {count: 10}
      where: {Currency: {SmartContract: {in: ["0xfa3e941d1f6b7b10ed84a0c211bfa8aee907965e", "0x06450dee7fd2fb8e39061434babcfc05599a6fb8"]}}}
    ) {
      BalanceUpdate {
        Address
      }
      token1: sum(
        of: BalanceUpdate_Amount
        if: {Currency: {SmartContract: {is: "0xfa3e941d1f6b7b10ed84a0c211bfa8aee907965e"}}}
        selectWhere: {gt: "0"}
      )
      token2: sum(
        of: BalanceUpdate_Amount
        if: {Currency: {SmartContract: {is: "0x06450dee7fd2fb8e39061434babcfc05599a6fb8"}}}
        selectWhere: {gt: "0"}
      )
    }
  }
}

Similar queries