Skip to main content

Introduction

SDK is an open source library created to help builders interact with the contracts from their JS/TS projects.

This guide endeavors to show examples of how builders can use the SDK, together with massa-web3, to perform a trade, add/remove liquidity, and claim fees.

Installation​

Run the following command to add the required dependencies to your project:

npm install @dusalabs/sdk @massalabs/massa-web3

Classes​

SDK implements 4 main classes: PairV2, RouteV2, TradeV2, and Bin. Specific documentation of the fields and functions for each class can be found in the code.

Github​

SDK uses Github to track issues and feature requests. Please open an issue if you have found a bug or have new feature requests. We also welcome contributions from the open source community. Open a pull request with a detailed explanation and the team will gladly review your contribution.

Github URLNPM URL
https://github.com/dusaprotocol/sdkhttps://www.npmjs.com/package/@dusalabs/sdk