unique pools

Returns DEX pools on Solana, where DEX program address is pAMMBa…fXEA, sorted by pool market market address, highest first: count and market address.

By Tal Fuks · saved 12 September 2025 · run 2 times · Bitquery API v2

What it returns

Filters

The query

query PumpSwapUniquePools {
  Solana(dataset: realtime) {

    # 1) distinct count of market addresses
    unique_count: DEXPools(
      where: {
        Pool: { Dex: { ProgramAddress: { is: "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA" } } }
        Transaction: { Result: { Success: true } }
      }
    ) {
      count(distinct: Pool_Market_MarketAddress)
    }

    # 2) unique market addresses (one per address)
    unique_addresses: DEXPools(
      where: {
        Pool: { Dex: { ProgramAddress: { is: "pAMMBay6oceH9fJKBRHGP5D4bD4sWpmSwMn52FMfXEA" } } }
        Transaction: { Result: { Success: true } }
      }
      limitBy: { count: 1, by: Pool_Market_MarketAddress }
      orderBy: { descending: Pool_Market_MarketAddress }
    ) {
      Pool { Market { MarketAddress } }
    }
  }
}

Similar queries