SDK

The STON.fi SDK provides a high-level TypeScript/JavaScript interface for interacting with the DEX protocol.

Installation

npm install @ston-fi/sdk

Versions

Current version with enhanced features:

  • Single-sided liquidity provision

  • Vault operations

  • Improved gas efficiency

Original SDK version:

  • Basic swap functionality

  • Traditional liquidity provision

  • Stable and battle-tested

Historical versions for reference:

  • v0.5

  • v0.4

Migration Guides

Quick Start

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);

See version-specific documentation for detailed usage instructions.

Last updated