top 10 holders of a token on matic

Returns 10 balance updates on Polygon, where currency smart contract is 0xdAb5…2ab7, sorted by balance, highest first: balance update address, sum of balance update amount and block number.

By Kshitij Mahajan · saved 22 August 2024 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM(network: matic, dataset: combined) {
    BalanceUpdates(
      where: {Currency: {SmartContract: {is: "0xdAb529f40E671A1D4bF91361c21bf9f0C9712ab7"}}}
      orderBy: {descendingByField: "Balance"}
      limit: {count: 10}
    ) {
      BalanceUpdate {
        Address
      }
      Balance: sum(of: BalanceUpdate_Amount)
      Block {
        Number
      }
    }
  }
}

Similar queries