Choose the right Saros SDK for your project based on your specific needs, technical requirements, and development expertise.
Feature | 🔷@saros-finance/sdkTypeScript | ⚡@saros-finance/dlmm-sdkTypeScript | 🦀saros-dlmm-sdk-rsRust |
---|---|---|---|
Performance | Good | Excellent | Exceptional |
Ease of Use | High | Medium | Low |
Ecosystem | Broad | Specialized | Specialized |
Best For |
|
|
|
Key Features |
|
|
|
Quick Start | Get Started | Get Started | Get Started |
Complete SDK for AMM, Staking, and Farming operations on Saros
Dynamic Liquidity Market Maker for advanced trading strategies
High-performance Rust SDK for DLMM operations
If you're building a general DeFi application with standard swap and liquidity features, the @saros-finance/sdk
is the best choice. For advanced trading strategies that require concentrated liquidity and reduced slippage, consider the @saros-finance/dlmm-sdk
. For high-performance, server-side applications, the Rust SDK is optimal.
The TypeScript SDKs are easier to use and have extensive documentation, making them suitable for teams with JavaScript/TypeScript experience. The Rust SDK requires knowledge of Rust and Solana's low-level concepts but offers superior performance.
For most applications, the performance of the TypeScript SDKs is sufficient. However, if you're building high-frequency trading systems or applications that require maximum throughput, the Rust SDK's zero-cost abstractions and memory safety provide significant advantages.
You can combine SDKs in a single project. For example, use the TypeScript SDK for frontend interactions and the Rust SDK for backend services that require high performance.