The SDK is written in TypeScript and designed to be a thin wrapper on top of the STON.fi contracts, which will help STON.fi protocol to be used more easily in JS/TS projects
Documentation for the SDK is available at docs.ston.fi
Firstly install the @ton/ton package following their installation guide
Then, add SDK package using the package manager of your choice.
npm install @ston-fi/sdk
yarn add @ston-fi/sdk
pnpm install @ston-fi/sdk
We are providing a simple but fully functional demo app with the SDK usage in the next.js app to demonstrate the SDK functionality. The source code is open-sourced and can be found here. Try this app at https://sdk-demo-app.ston.fi