Solana API
The Odos Solana API provides smart order routing for swaps on Solana mainnet. It uses the same two-step quote and assemble workflow as the EVM SOR API, but runs on a Solana-specific base URL and returns transaction data for Solana execution.
Base URL: https://solana-beta-api.odos.xyz
| Feature | Availability |
|---|---|
| Status | Production |
| Chain ID | 101 for Solana mainnet |
| Uptime SLA | 99.9% |
When to use
- Quote swaps across supported Solana liquidity sources
- Assemble transaction data from a fresh quote
- Retrieve supported Solana tokens and liquidity sources
- Build Solana swap flows that need Odos routing, slippage protection, and route discovery
Key differences from EVM
| Topic | EVM SOR | Solana API |
|---|---|---|
| Chain ID | EVM chain IDs | 101 for Solana mainnet |
| Addresses | 0x hex addresses | Base58 Solana addresses |
| Token amounts | Base units by token decimals | Base units, including lamports for SOL |
| Gas pricing | Required for execution | N/A; network fee is built in |
| RFQs | Supported where available | Disabled by default; disableRFQs is accepted for compatibility |
| Simulation | Supported | Quote is not simulated; assemble accepts simulate but simulation metadata is informational |
| Referral fees | Optional | Supported through referral configuration |
Core flow
- Fetch token metadata from
GET /info/tokens/101. - Request a quote from
POST /sor/quote/v3. - Assemble the quote with
POST /sor/assembleusing the returnedpathId. - Sign and submit the assembled transaction with your Solana wallet and RPC provider.
Quotes are valid for 60 seconds. If a quote expires before assembly, request a new quote and use the new pathId.
Endpoints
| Method | Endpoint | Purpose |
|---|---|---|
GET | /healthcheck | Check API health |
GET | /info/tokens/101 | List supported Solana tokens |
GET | /info/liquidity-sources/101 | List supported Solana liquidity sources |
POST | /sor/quote/v3 | Generate a Solana swap quote |
POST | /sor/assemble | Assemble transaction data from a quote |
Authentication
The public Solana endpoint does not require authentication.