We’re excited to launch the public release of StellaSwap’s Development Kit (SDK 😉), a tool that allows developers & projects to interact with StellaSwap’s DEX and access our deep-liquidity. As the most-used DEX on Polkadot, we’re proud to be the schelling point of native assets and users wanting to trade & stake in a familiar EVM-environment.
Overview of our SDK
Our public SDK provides functionality for integrating swaps on Moonbeam into any app or plugin. Moonbeam is the leading EVM parachain in Polkadot, and therefore taps on the best of Polkadot’s security and Ethereum’s convenience.
Developers and projects can integrate our our DEX for various applications that leverages on our liquidity. Our SDK features a range of useful documentation and APRs that entails technical specifications and code samples.
Description
The @stellaswap/swap-sdk provides functionality for integrating swap on Moonbeam into any app or plugin. StellaSwap SDK allows end-users to exchange tokens seamlessly on Moonbeam network.
Features
Uses state-of-the-art Hybrid Router
Utilizes Stable, V2, V3 AMMs
Error Handling
Installation
To install the package, use npm or yarn:
npm install @stellaswap/swap-sdk
# OR
yarn add @stellaswap/swap-sdk
Usage
Importing the SDK
First, import the SDK.
import stellaSwap from '@stellaswap/swap-sdk';
Allowance
This helps to check allowance of tokenAddress against spender, it will return allowed number if there is any.