user-33990

Returns balance updates on Polygon, where currency smart contract is 0x4d97…6045, sorted by balance, highest first: sum of balance update amount and balance update address.

By Kshitij Mahajan · saved 13 April 2026 · Bitquery API v2

What it returns

Filters

The query

query ($tokenId: String!, $since: DateTime!, $till: DateTime!, $offset: Int!, $limit: Int!) {
  EVM(dataset: combined, network: matic) {
    BalanceUpdates(
      limit: { count: $limit, offset: $offset }
      orderBy: { descendingByField: "Balance" }
      where: {
        Block: { Time: { since: $since, till: $till } }
        Currency: { SmartContract: { is: "0x4d97dcd97ec945f40cf65f87097ace5ea0476045" } }
        BalanceUpdate: { Id: { eq: $tokenId } }
      }
    ) {
      Balance: sum(of: BalanceUpdate_Amount)
      BalanceUpdate { Address }
    }
  }
}

Similar queries