Comprehensive developer documentation for Saros Finance SDKs. From zero to shipping in minutes with our interactive guides, code playground, and AI-powered tools.
npm install @saros-finance/sdk @saros-finance/dlmm-sdk
Step-by-step tutorials with live code examples
Test and experiment with SDK features instantly
Get instant feedback on your code quality
Test with real transactions on Solana Devnet
Get started with a simple swap operation using the DLMM SDK
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
});
The Saros SDKs are open-source and community-driven. We welcome contributions from developers of all levels.
Explore the source code and contribute to the SDKs
View RepositoryComplete API documentation for all SDK methods
Browse APILearn how to test with real transactions
Get Started