Solana

This section contains guides for executing token swaps on the Solana blockchain using the DeFrame API.

Guides

API Structure

Note: Solana swaps use a different API structure than EVM chains. The Solana API uses the /strategies/:id endpoints, while EVM chains use the dedicated /swap/quote and /swap/bytecode endpoints.

Features

  • Solana Native: Optimized for Solana's unique architecture

  • Multiple AMM Protocols: Support for Raydium, Orca, and other Solana AMMs

  • Automatic Route Finding: Find the best swap route across available protocols

  • Associated Token Account (ATA) Management: Automatic ATA creation and management

  • Lamports Support: Native support for Solana's lamport precision

Important Notes

  • All amounts use lamports (1 SOL = 1,000,000,000 lamports)

  • Token mints are used instead of contract addresses

  • Transaction fees are paid in SOL

  • Associated Token Accounts (ATAs) are automatically handled

  • Fast block times require careful slippage management

Last updated