@catalabs/catalyst-api-client
TypeScript icon, indicating that this package has built-in type declarations

0.0.101 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i @catalabs/catalyst-api-client

Weekly Downloads

615

Version

0.0.101

License

UNLICENSED

Unpacked Size

136 kB

Total Files

223

Last publish

Collaborators

  • reednaa
  • tomiiide
  • hellojintao