Top NFT Holders

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

By Nadia · saved 13 December 2023 · run 3 times · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $limit: Int!, $offset: Int!, $token: String) {
  EVM(dataset: combined, network: $network) {
    BalanceUpdates(
      orderBy: {descendingByField: "balance"}
      limit: {offset: $offset, count: $limit}
      where: {Currency: {SmartContract: {is: $token}}}
    ) {
      ChainId
      BalanceUpdate {
        Address
      }
      balance: sum(of: BalanceUpdate_Amount)
      ids: uniq(of: BalanceUpdate_Id, method: approximate)
      Currency {
        Name
        Symbol
      }
    }
  }
}

Variables

{
  "network": "eth",
  "limit": 10,
  "offset": 0,
  "token": "0x0fcbd68251819928c8f6d182fc04be733fa94170"
}

Similar queries