@catalabs/catalyst-api-client
v0.0.116
Published
Typed SDK for interacting with the Catalyst DAO API
Downloads
1,254
Readme
Catalyst API Client
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.
Usage
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.
Development
yarn
yarn build
npx ts-node --project tsconfig.demo.json examples/list-pools.ts