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
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";
Chain API client.
A-DEX RPC API client.
Helper class to construct swap contract actions which can be signed and pushed on chain.
Helper class to construct swap contract transactions which can be signed and pushed on chain.
Helper functions for math calculations and data formating.