Solana - First buyers of a Pump.fun token (sniper detection)

The earliest buyers of a token, in time order - snipers are the first rows, buying within seconds of launch at the lowest price. Replace `token` in the Variables pane.

By gaurav · saved 27 August 2026 · run 16 times · Bitquery API v2

What it returns

Filters

The query

# Solana - Pump.fun - First buyers of a token (sniper detection)
#
# Returns the earliest buys of one token in time order. Snipers show up as the
# first few rows: wallets that bought within seconds of the token appearing,
# usually for a large share of supply and at the lowest price on the chart.
#
# Compare Block.Time across the first rows to see how tightly they cluster,
# and Trade.Amount to see how much of the supply they took.
#
# Change `token` in the Variables pane. Raise the limit to widen the window.
#
# Bitquery V2 query - send it to https://streaming.bitquery.io/graphql
#
# Datasets:  https://docs.bitquery.io/docs/graphql/dataset/archive/
# Retention: https://docs.bitquery.io/docs/graphql/data-coverage-retention/

query ($token: String!) {
  Solana {
    DEXTradeByTokens(
      limit: {count: 25}
      orderBy: {ascending: Block_Time}
      where: {Trade: {Currency: {MintAddress: {is: $token}}, Side: {Type: {is: buy}}}}
    ) {
      Block { Time }
      Transaction { Signature }
      Trade {
        Account { Owner }
        Amount
        AmountInUSD
        PriceInUSD
        Dex { ProtocolName }
      }
    }
  }
}

Variables

{"token": "EJkY6bLFhFRdUqN4AVtJFp97jmmwriqMszyaucvppump"}

Similar queries