first 500 buyers of a specific BSC chain token

Historical data This query already reads history - it uses the combined dataset, which needs the historical data add-on for this chain. Without the add-on it fails with 'access restricted: your plan only allows realtime'. Drop the dataset argument to fall back to the recent window. Datasets: https:

By Akshat · saved 7 November 2025 · run 3 times · Bitquery API v2

What it returns

Filters

The query

# Historical data
#   This query already reads history - it uses the combined dataset, which
#   needs the historical data add-on for this chain.
#
#   Without the add-on it fails with 'access restricted: your plan only allows
#   realtime'. Drop the dataset argument to fall back to the recent window.
#
# Datasets:  https://docs.bitquery.io/docs/graphql/dataset/archive/
# Retention: https://docs.bitquery.io/docs/graphql/data-coverage-retention/
#

query MyQuery {
  EVM(network: bsc dataset:combined) {
    DEXTrades(
      limit: {count: 500}
      orderBy: {ascending: Block_Time}
      limitBy:{count:1 by:Trade_Sell_Buyer}
      where: {Trade: {Sell: {Currency: {SmartContract: {is: "0x031b41e504677879370e9DBcF937283A8691Fa7f"}}}}}
    ) {
      Block {
        Time
      }
      Trade {
        Sell {
          Buyer
        }
      }
      Transaction{
        From
        Hash
      }
    }
  }
}

Similar queries