Skip to main content

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

FeatureAvailability
StatusProduction
Chain ID101 for Solana mainnet
Uptime SLA99.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

TopicEVM SORSolana API
Chain IDEVM chain IDs101 for Solana mainnet
Addresses0x hex addressesBase58 Solana addresses
Token amountsBase units by token decimalsBase units, including lamports for SOL
Gas pricingRequired for executionN/A; network fee is built in
RFQsSupported where availableDisabled by default; disableRFQs is accepted for compatibility
SimulationSupportedQuote is not simulated; assemble accepts simulate but simulation metadata is informational
Referral feesOptionalSupported through referral configuration

Core flow

  1. Fetch token metadata from GET /info/tokens/101.
  2. Request a quote from POST /sor/quote/v3.
  3. Assemble the quote with POST /sor/assemble using the returned pathId.
  4. 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

MethodEndpointPurpose
GET/healthcheckCheck API health
GET/info/tokens/101List supported Solana tokens
GET/info/liquidity-sources/101List supported Solana liquidity sources
POST/sor/quote/v3Generate a Solana swap quote
POST/sor/assembleAssemble transaction data from a quote

Authentication

The public Solana endpoint does not require authentication.

Next steps

  • Use Quote to request a route.
  • Use Assemble to build transaction data.
  • Use Reference for token lists, liquidity sources, common parameters, and troubleshooting.