Top NFT Holders

Returns 10 balance updates on Ethereum, where currency smart contract is 0x0fcb…4170, block date since 2024-01-01 and block date till 2024-01-10, 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 15 January 2024 · run 18 times · Bitquery API v2

What it returns

Filters

The query

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

Variables

{
  "network": "eth",
  "limit": 10,
  "from": "2024-01-01",
  "till": "2024-01-10",
  "token": "0x0fcbd68251819928c8f6d182fc04be733fa94170"
}

Similar queries