Common token holder Bored Ape Yacht Club and Mutant Ape Yacht Club

Returns 1000 balance updates, where currency smart contract is 0xbc4c…f13d or 0x60e4…a7c6, sorted by token1, highest first: balance update address and sum of balance update amount.

By gaurav · saved 23 October 2023 · run 16 times · Bitquery API v2

What it returns

Filters

The query

{
  EVM(dataset: archive) {
    BalanceUpdates(
      orderBy: {descendingByField: "token1"}
      limit: {count: 1000}
      where: {Currency: {SmartContract: {in: ["0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d", "0x60e4d786628fea6478f785a6d7e704777c86a7c6"]}}}
    ) {
      BalanceUpdate {
        Address
      }
      token1: sum(
        of: BalanceUpdate_Amount
        if: {Currency: {SmartContract: {is: "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d"}}}
        selectWhere: {gt: "0"}
      )
      token2: sum(
        of: BalanceUpdate_Amount
        if: {Currency: {SmartContract: {is: "0x60e4d786628fea6478f785a6d7e704777c86a7c6"}}}
        selectWhere: {gt: "0"}
      )
    }
  }
}

Similar queries