Retrieve clmm pools
1. Retrieve all pools
Example
async function retrievelAllPools() {
// If you want to get all pools, just pass one empty array.
const pools = await TestnetSDK.Pool.getPoolsWithPage([])
console.log(`pool length: ${pools.length}`)
}
// retrievelAllPools()
//pool length: 822. Batch retrieval of pools
Example
3. Retrieve one pool
Example
4. Retrieve one pool by coin types and fee rate
Last updated