Common token holders NFT

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 3 times · Bitquery API v2

What it returns

Filters

The query

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

Variables

{
  "token1": "0xbc4ca0eda7647a8ab7c2061c2e118a18a936f13d",
  "token2": "0x60e4d786628fea6478f785a6d7e704777c86a7c6",
  "date": "2025-11-22"
}

Similar queries