Top holders usdc example

Returns one token holder on Ethereum, where holder address is not 0x, sorted by balance amount, highest first: holder address, balance amount, currency symbol, currency name, smart contract and chain ID.

By Aleksey · saved 12 February 2024 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query ($network: evm_network, $till_now: String!, $token: String!, $limit: Int) {
  EVM(network: $network, dataset: archive) {
    TokenHolders(
      where: {Holder: {Address: {not: "0x"}}}
      tokenSmartContract: $token
      date: $till_now
      orderBy: {descending: Balance_Amount}
      limit: {count: $limit}
    ) {
      Holder {
        Address
      }
      Balance {
        Amount
      }
      Currency {
        Symbol
        Name
        SmartContract
      }
    }
    Blocks(limit: {count: 1}) {
      ChainId
    }
  }
}

Variables

{"network":"eth","till_now":"2024-02-12","limit":10,"token":"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48"}

Similar queries