Get Pool by Address
Fetch and query a Pumpswap AMM pool info based on pool address.
Pump.fun has now launched its own decentralized exchange called PumpSwap, to which pump tokens migrate to after completing their bonding curve. Using Pump AMM's GraphQL API, we can query and filter pool data based on any available field. Here, we filter by the pubkey
field to fetch pool details for the corresponding pool.
You can directly copy paste this code on replit and see it in action.
Fetch parsed pump swap pool info
The response contains base_mint
and quote_mint
which is the liquidity pool pair. The lp_mint
field is the liquidity pool token address. Please note that more fields such as pool_base_token_account
, pool_quote_token_account
, lp_supply
can also be cherrypicked, or omitted as per your requirement.
Last updated
Was this helpful?