mirror-link-query

Returns the latest DEX pool on Solana, where base currency mint address is DezXAZ…B263, currency mint address is DezXAZ…B263 and DEX protocol family is Raydium, Pumpswap or 1 more: base post amount, quote post amount, protocol family, base currency name, base currency symbol, base currency mint address, quote currency name and 6 more fields.

By Kshitij Mahajan · saved 4 July 2025 · run 1 time · Bitquery API v2

What it returns

Filters

The query

query MyQuery($token: String!) {
  Solana {
    DEXPools(
      where: {Pool: {Market: {BaseCurrency: {MintAddress: {is: $token}}}, Dex: {ProtocolFamily: {in: ["Raydium", "Pumpswap", "OrcaWhirpool"]}}}}
      limitBy: {by: Pool_Market_MarketAddress, count: 1}
      orderBy: {descending: Block_Time}
    ) {
      Pool {
        Base {
          BaseLiquidity: PostAmount
        }
        Quote {
          QuoteLiquidity: PostAmount
        }
        Dex {
          ProtocolFamily
        }
        Market {
          BaseCurrency {
            Name
            Symbol
            MintAddress
          }
          QuoteCurrency {
            Name
            Symbol
            MintAddress
          }
        }
      }
    }
    TokenSupplyUpdates(
      where: {TokenSupplyUpdate: {Currency: {MintAddress: {is: $token}}}}
      orderBy: {descending: Block_Time}
      limit: {count: 1}
    ) {
      TokenSupplyUpdate {
        Marketcap: PostBalanceInUSD
        TotalSupply: PostBalance
      }
    }
    DEXTradeByTokens(
      limitBy: {by:Trade_Market_MarketAddress count:1}
      orderBy: {descending: Block_Time}
      where: {Trade:{Currency:{MintAddress:{is:$token}}}}
    ){
      Trade{
        Market{
          MarketAddress
        }
        PriceInUSD
      }
    }
  }
}

Variables

{
  "token": "DezXAZ8z7PnrnRJjz3wXBoRgixCa6xjnB7YaB1pPB263"
}

Similar queries