@a-dex/a-dex-sdk
v1.0.21
Published
[![Unit Tests](https://github.com/A-DEX/a-dex-sdk/workflows/Unit%20Tests/badge.svg)](https://github.com/A-DEX/a-dex-sdk/actions?query=workflow%3A%22Unit+Tests%22) [![Lint](https://github.com/A-DEX/a-dex-sdk/workflows/Lint/badge.svg)](https://github.com/A-
Downloads
94
Maintainers
Readme
a-dex-sdk
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.