matic balance at a block height

Returns balance updates on Polygon, where balance update address is 0xcB03…5296, currency smart contract is 0xc213…8e8F and block number is at most 77708375, sorted by balance, highest first: currency name, sum of balance update amount and balance update address.

By Akshat · saved 15 October 2025 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(dataset: combined, network: matic) {
    BalanceUpdates(
      where: {BalanceUpdate: {Address: {is: "0xcB0386bc7a8D473a3F6CB6459b15d8Cfcf9C5296"}}, Block: {Number: {le: "77708375"}}, Currency: {SmartContract: {is: "0xc2132D05D31c914a87C6611C10748AEb04B58e8F"}}}
      orderBy: {descendingByField: "balance"}
    ) {
      Currency {
        Name
      }
      balance: sum(of: BalanceUpdate_Amount, selectWhere: {gt: "0"})
      BalanceUpdate {
        Address
      }
    }
  }
}

Similar queries