SDK
STON.fi DEX SDK documentation - TypeScript/JavaScript tools for DEX integration on TON blockchain
Last updated
STON.fi DEX SDK documentation - TypeScript/JavaScript tools for DEX integration on TON blockchain
Last updated
import { DEX } from '@ston-fi/sdk';
// Initialize DEX
const dex = new DEX.v2.Router({
tonApiClient: client
});
// Perform a swap
const swapParams = {
// ... swap parameters
};
const swap = await dex.buildSwapTransaction(swapParams);