RUN THIS AFTER GETTING TOKENS

Manually run this for each token to get the 100 first buyers. Then proceed to Python

By Vidal · saved 19 February 2025 · run 5 times · Bitquery API v1

What it returns

Filters

The query

query GetFirstBuyers($tokenAddresses: [String!]) {
  solana(network: solana) {
    transfers(
      options: {desc: "block.height", limit: 100, offset: 0}
      time: {since: "2025-02-17T21:35:54.000Z", till: "2025-02-18T23:50:54.999Z"}
      currency: {in: $tokenAddresses}
      amount: {gt: 0.05}  # ✅ Filter out dust buys
    ) {
      block {
        timestamp {
          time(format: "%Y-%m-%d %H:%M:%S")
        }
        height
      }
      sender {
        address
      }
      receiver {
        address
      }
      currency {
        address
        symbol
      }
      amount
      amount_usd: amount(in: USD)
      transaction {
        signature
      }
    }
  }
}

Variables

{
  "tokenAddresses": [
        "9y85eyif9UpRAteAuMY8H6LypvfGmNCw9NCKooe8pump"
  ],
  "since": "2025-02-15T00:00:00.000Z",
  "till": "2025-02-18T23:59:59.999Z"
}

Similar queries