Build on Saros

Comprehensive developer documentation for Saros Finance SDKs. From zero to shipping in minutes with our interactive guides, code playground, and AI-powered tools.

Quick Install

npm install @saros-finance/sdk @saros-finance/dlmm-sdk

Choose Your SDK

@saros-finance/sdk
TS logo TypeScript
Complete SDK for AMM, Staking, and Farming operations on Saros
  • • Token swapping
  • • Pool creation & management
  • • Staking & farming rewards
  • • Comprehensive utilities
@saros-finance/dlmm-sdk
TS logo TypeScript
Dynamic Liquidity Market Maker for advanced trading strategies
  • • Dynamic liquidity bins
  • • Advanced position management
  • • Optimized price discovery
  • • Real-time market data
saros-dlmm-sdk-rs
TS logo Rust
High-performance Rust SDK for DLMM operations
  • • Zero-cost abstractions
  • • Memory safety
  • • High-performance trading
  • • Native Solana integration

This Guide Includes:

Interactive Guides

Step-by-step tutorials with live code examples

Code Playground

Test and experiment with SDK features instantly

AI Code Checker

Get instant feedback on your code quality

Devnet Testing

Test with real transactions on Solana Devnet

See It In Action

Get started with a simple swap operation using the DLMM SDK

Quick Swap Example
import { LiquidityBookServices } from "@saros-finance/dlmm-sdk";

const liquidityBookServices = new LiquidityBookServices({
  mode: MODE.MAINNET,
});

// Get quote for swap
const quoteData = await liquidityBookServices.getQuote({
  amount: BigInt(1000000), // 1 USDC
  isExactInput: true,
  swapForY: true,
  pair: new PublicKey("EwsqJeioGAXE5EdZHj1QvcuvqgVhJDp9729H5wjh28DD"),
  // ... other params
});

Contribute to Saros

The Saros SDKs are open-source and community-driven. We welcome contributions from developers of all levels.

Additional Resources

GitHub

Explore the source code and contribute to the SDKs

View Repository
API Reference

Complete API documentation for all SDK methods

Browse API
Devnet Testing

Learn how to test with real transactions

Get Started