Get Bonding Curve Details by Pool Address
Fetch and query a Raydium Launchpad Bonding Curve or other pool info based on pool address.
Each Launchpad pool uses a bonding curve to manage price and token distribution. By querying the pool using its address, we can fetch detailed curve parameters like virtual reserves, tokens sold, and total funds raised. Shyft's GraphQL API enables us to query and filter pool data based on any available field. Here, we filter by the pubkey
field to fetch the bonding curve details for the corresponding pool.
You can directly copy paste this code on replit and see it in action.
Fetch parsed Bonding curve pool info
The response contains the following fields which involves the fields of the bonding curve
supply
: Total base token supply in the bonding curve.total_base_sell
: Total base tokens sold so far via the curve.total_quote_fund_raising
: Total SOL (quote tokens) raised from buyers.virtual_base
&virtual_quote
: Curve parameters that define price behavior depending on the curve type (e.g., for Constant Product or Fixed Price).real_base
&real_quote
: Actual on-chain token balances in the pool vaults (useful for pricing and tracking liquidity backing).curveType
(Available on Global Config): A curvetype0
indicates a constant curve,1
means constant price, and2
means linear. This data is essential for token price calculation.
However, these are not the only fields available in the PoolState account, other fields such as quote_mint
, base_mint
can also be cherrypicked, or omitted as per your requirement.
In the next example we will explore how we can fetch more Pool details on Raydium Launchpad, which is as simple as adding more fields on the request query.
Fetch parsed Bonding curve pool info
Last updated
Was this helpful?