@a-dex/a-dex-sdk
TypeScript icon, indicating that this package has built-in type declarations

1.0.21 • Public • Published

a-dex-sdk

Unit Tests Lint code style: prettier npm version npm bundle size (scoped version)

Usage

This is a Node.js module available through the npm registry. Installation is done using the npm install command:

npm install @a-dex/a-dex-sdk

Initialize

Web library can be found in the [dist] folder

// standard import
const {
  SwapActionGenerator,
  SwapTransactionGenerator,
  ChainApi,
  RpcApi,
} = require("@a-dex/a-dex-sdk");

// ES6 import
import {
  SwapActionGenerator,
  SwapTransactionGenerator,
  ChainApi,
  RpcApi,
} from "@a-dex/a-dex-sdk";

Documentation

ChainApi

Chain API client.

RpcApi

A-DEX RPC API client.

SwapActionGenerator

Helper class to construct swap contract actions which can be signed and pushed on chain.

SwapTransactionGenerator

Helper class to construct swap contract transactions which can be signed and pushed on chain.

Utils

Helper functions for math calculations and data formating.

Package Sidebar

Install

npm i @a-dex/a-dex-sdk

Weekly Downloads

107

Version

1.0.21

License

MIT

Unpacked Size

154 kB

Total Files

83

Last publish

Collaborators

  • avm07