Data Fetching & Pool Introspection
Whether it be to create a custom dashboard, or just finding out what current positions look like, fetching pool information might be the first and foremost task that most developers will want to use
// Initialisation always works the same way --
// pick a chain and a provider, and create the ionic object
const sdk = new IonicSdk(provider, chainId);fetchPoolData
fetchPoolDataconst poolData = await sdk.fetchPoolData("1", "0x111...")
poolData.assets.map((a) => console.log(a.underlyingSymbol));
>>> "2brl", "WBNB", "ETH", "BUSD"fetchPools
fetchPoolsfetchPoolsManual
fetchPoolsManualLast updated