The 1inch Solana Fusion SDK enables token swaps on Solana with ultra-fast transactions and minimal fees. Unlike EVM chains where orders are signed off-chain, Solana orders are placed directly on-chain through escrow contracts.
Key Benefits
- Ultra-Fast Transactions - Solana's ~400ms block times mean near-instant order confirmation
- Minimal Fees - Transaction costs are typically under $0.01, with no additional 1inch fees
- Deep Liquidity - Access swaps across over 1 million Solana-native tokens
- MEV Protection - Built-in protection against front-running and sandwich attacks
How Solana Fusion Works
The swap process on Solana differs from EVM chains:
- Create Order - The SDK generates a FusionOrder with optimal auction parameters
- Build Escrow Transaction - A transaction is prepared to create an on-chain escrow holding your tokens
- Sign and Broadcast - You sign and submit the transaction (paying ~$0.001 in fees)
- Resolver Fills Order - Resolvers compete to fill your order at the best price
- Receive Tokens - The destination token is delivered directly to your wallet
Core Methods
- getQuote - Fetches current pricing and auction parameters. Use this to display expected output amounts before users commit to a trade.
- createOrder - Generates a FusionOrder struct with source/destination tokens, amounts, and Dutch auction parameters. This data is used to build the on-chain escrow transaction.
- getOrderStatus - Checks whether an order is still active or has been filled/cancelled. Use this for polling-based status tracking.
- WebSocketApi - Real-time order status updates as an alternative to polling. Subscribe to order events for instant notifications when your order is filled or cancelled.
Integration Pattern
A typical integration follows this flow:
- Initialize SDK - Create an SDK instance with your API key
- Fetch Quote - Show users the expected swap rate before they confirm
- Create Order - Generate the order structure when user approves
- Build Transaction - Use FusionSwapContract to create the escrow instruction
- Submit & Track - Broadcast the transaction and monitor for completion
Interactive Code Example
Explore the complete implementation — this example demonstrates swapping SOL to JUP: