Example of using variables

Returns the latest 100 DEX pools on Solana, where base currency mint address is YOUR_TOKEN_MINT_ADDRESS, DEX protocol name is pump and block time since 2024-11-01: block time, slot, base post amount, base virtual amount, base post amount in USD, quote post amount, quote virtual amount and 10 more fields.

By Bulat · saved 28 December 2025 · Bitquery API v2

What it returns

Filters

The query

query PumpFunBondingCurveProgress($token: String!, $timeframe: DateTime!) {
  Solana {
    DEXPools(
      where: {
        Pool: {
          Market: {
            BaseCurrency: { MintAddress: { is: $token } }
          }
          Dex: { ProtocolName: { is: "pump" } }
        }
        Block: { Time: { since: $timeframe } }
        Transaction: { Result: { Success: true } }
      }
      orderBy: { descending: Block_Time }
      limit: { count: 100 }
    ) {
      Block {
        Time
        Slot
      }
      Pool {
        Base {
          PostAmount
          VirtualAmount
          PostAmountInUSD
        }
        Quote {
          PostAmount
          VirtualAmount  
          PostAmountInUSD
          Price
          PriceInUSD
        }
        Market {
          BaseCurrency {
            Name
            Symbol
            MintAddress
          }
          MarketAddress
        }
      }
      # Calculate bonding curve progress
      BondingCurveProgress: calculate(
        expression: "((800000000 - $Pool_Base_PostAmount) / 800000000) * 100"
      )
      Transaction {
        Signature
        Signer
      }
    }
  }
}

Variables

{
  "token": "YOUR_TOKEN_MINT_ADDRESS",
  "marketAddress": "YOUR_MARKET_ADDRESS", 
  "timeframe": "2024-11-01T00:00:00Z"
}

Similar queries