Get Top 10 Token Holders

Returns 10 balance updates on Ethereum, where currency smart contract is 0x2358…a68b, sorted by balance, highest first: balance update address, sum of balance update amount, currency symbol and currency name.

By Poly4 · saved 24 October 2024 · Bitquery API v2

What it returns

Filters

The query

query MyQuery($tokenCA: String!) {
  EVM(dataset: combined, network: eth) {
    BalanceUpdates(
      limit: {count: 10}
      orderBy: {descendingByField: "Balance"}
      where: {Currency: {SmartContract: {is: $tokenCA}}}
    ) {
      BalanceUpdate {
        Address
      }
      Balance: sum(
        of: BalanceUpdate_Amount
        selectWhere: { gt: "0" }
      )
      Currency {
        Symbol
        Name
      }
    }
  }
}

Variables

{
  "tokenCA": "0x23581767a106ae21c074b2276D25e5C3e136a68b"
}

Similar queries