0.8.0 • Published 8 days ago
@ston-fi/api v0.8.0
TypeScript wrapper on top of the Ston.fi Http API
Installation
NPM
npm install @ston-fi/api
Yarn
yarn add @ston-fi/api
PNPM
pnpm install @ston-fi/api
Configuration
Zero config required, you can just create an instance
Optional configuration are also possible by providing an object of type StonApiClientOptions
to the constructor
import { StonApiClient } from '@ston-fi/api';
const client = new StonApiClient();
Usage
// get list of all assets listed on DEX
const assets = await client.getAssets();
// get list of all assets listed on DEX with balances for a given wallet
const walletAssets = await client.getWalletAssets('EQ...')
Roadmap
- add missed methods. You can find the list of currently available methods here.
/wallets
/{addr_str}/operations
/stats
/dex
/operations
/pool
/export
- and js-dock for each method
- add more options in configuration