Get Pool by Address
Fetch and query a Fluxbeam pool info based on it's address.
We can query Fluxbeam pool data and filter them by fields using GraphQl APIs. Filters can be applied on any field, and in this case, we filter the pubkey field.
You can directly copy paste this code on replit and see it in action.
Fetch parsed pool info
The Response contains mintA
and mintB
which is the liquidity pool pair. Please note that more fields such as feeAccount
, TokenPool
, curveType
can also be cherrypicked as per your requirement.
Last updated