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.
What it returns
- block time
- slot
- base post amount
- base virtual amount
- base post amount in USD
- quote post amount
- quote virtual amount
- quote post amount in USD
- quote price
- quote price in USD
- base currency name
- base currency symbol
- base currency mint address
- market address
- calculate
- transaction signature
- signer
Filters
- base currency mint address is YOUR_TOKEN_MINT_ADDRESS
- DEX protocol name is pump
- block time since 2024-11-01
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
- Solana Pool Latest Price · Solana · DexPools
- Solana Pool Price History Last Hour · Solana · DexPools
- price · Solana · DEXTradeByTokens
- websocket Solana dexpool api · Solana · DexPools
- query solana pools · Solana · DexPools