Get Bonk balance of a pair address on solana

Returns one DEX pool on Solana, where base currency mint address is D3ezSV…bonk and DEX program address is LanMV9…J3uj, sorted by block slot, highest first: market address, base currency mint address, base currency symbol, base currency name, quote currency mint address, quote currency symbol, quote currency name and 6 more fields.

By Mell · saved 14 July 2025 · Bitquery API v2

What it returns

Filters

The query

query GetLatestLiquidityForPool {
  Solana {
    DEXPools(
      where: {Pool: {Market: {BaseCurrency: {MintAddress: {is: "D3ezSVi8YD2P4aQTpBDvndikmtnbhpEMixxdHcq9bonk"}}}, Dex: {ProgramAddress: {is: "LanMV9sAd7wArD4vJFi2qDdfnVhFxYSUg6eADduJ3uj"}}}}
      orderBy: {descending: Block_Slot}
      limit: {count: 1} 
    ) {
      Pool {
        Market {
          MarketAddress
          BaseCurrency {
            MintAddress
            Symbol
            Name
          }
          QuoteCurrency {
            MintAddress
            Symbol
            Name
          }
        }
        Dex {
          ProtocolFamily
          ProtocolName
        }
        Quote {
          PostAmount
          PriceInUSD
          PostAmountInUSD
        }
        Base {
          PostAmount
        }
      }
    }
  }
}

Similar queries