top holders and dex markets for token

Returns 10 balance updates and DEX trades by token, where currency smart contract is 0x5149…86ca, sorted by holdings, highest first: balance update address, sum of balance update amount, protocol family, protocol name, protocol version, owner address and count.

By Kshitij Mahajan · saved 25 February 2025 · Bitquery API v2

What it returns

Filters

The query

query MyQuery {
  EVM {
    topHolders: BalanceUpdates(
      where: {Currency: {SmartContract: {is: "0x514910771af9ca656af840dff83e8264ecf986ca"}}}
      limit: {count: 10}
      orderBy: {descendingByField: "holdings"}
    ) {
      BalanceUpdate {
        Address
      }
      holdings: sum(of: BalanceUpdate_Amount)
    }
    Markets: DEXTradeByTokens(
      where: {Trade: {Currency: {SmartContract: {is: "0x514910771af9ca656af840dff83e8264ecf986ca"}}}}
    ) {
      Trade {
        Dex {
          ProtocolFamily
          ProtocolName
          ProtocolVersion
          OwnerAddress
        }
      }
      count
    }
  }
}

Similar queries