Get Pool by Token Addresses
Fetch Fluxbeam Pool based on a single Token Address or a Liquidity Pair
Liquidity pools rely on liquidity token pairs. These pairs are the two tokens that users contribute in equal value to the pool. In Fluxbeam, the liquidity pairs denoted by the mintA and mintB fields.
For instance we are trying to get liquidity pools involving USDC and SOL, so we filter mintA
and mintB
fields using the _in filter.
You can directly copy paste this code on replit and see it in action.
Fetch Pool by Liquidity Pair (USDC-SOL)
We can also query liquidity pool involving a particular token address, for that we would have to filter the mintA
or mintB
field using the _in filter.
Fetch Pool For a Token (SOL)
Last updated
Was this helpful?