The API Client is a package that enables the ability to easily query data for Catalyst AMM.
All API interfaces are defined within the API Client and controlled from that version. The API client will always be compatible with the API.
const client = new CatalystApiClient();
async function fetchPoolsList() {
console.log(`Listing Catalyst available pools...`);
const pools = await client.listPools();
json_pp(pools);
}
fetchPoolsList();
Examples are provided for further usages. Individual services are exposed for more specific, or less used queries.
yarn
yarn build
npx ts-node --project tsconfig.demo.json examples/list-pools.ts