inspect top20 pos of holder

Returns 100000 balance updates on Base, where currency smart contract is 0x67a5…a129, balance update address is 0x018f…41e1 and balance update ID is 1, 2 or 58 more: balance update ID and sum of balance update amount.

By Aleks M · saved 27 October 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query ($contract: String!, $holder: String!, $ids: [String!]!) {
  EVM(dataset: archive, network: base) {
    BalanceUpdates(
      where: {
        Currency: { SmartContract: { is: $contract } }
        BalanceUpdate: { Address: { is: $holder }, Id: { in: $ids } }
      }
      limit: { count: 100000 }
    ) {
      BalanceUpdate { Id }
      Amount: sum(of: BalanceUpdate_Amount)
    }
  }
}

Variables

{
  "contract": "0x67a5a4437aa8ee86d394e004d74ec77feae5a129",
  "holder": "0x018f39e33b8289b9e4f93e08a84b750d884141e1",
  "ids": ["1","2","3","4","5","6","7","8","9","10",
          "11","12","13","14","15","16","17","18","19","20",
          "21","22","23","24","25","26","27","28","29","30",
          "31","32","33","34","35","36","37","38","39","40",
          "41","42","43","44","45","46","47","48","49","50",
          "51","52","53","54","55","56","57","58","59","60"]
}

Similar queries