v1
latestOpenAPI 3.1.02026-07-13570316.1 KBGet Solana Swap Quote
Get a quote for swapping tokens on Solana. This endpoint returns the expected output amount and swap details without executing the transaction.
Important: Swaps are only available on Solana mainnet.
Authentication: This endpoint requires backend authentication using the x-secret-key header.
Query parameters
Solana wallet address that will execute the swap.
Solana wallet address that will execute the swap.
Input token mint address (the token being sold).
Input token mint address (the token being sold).
Output token mint address (the token being purchased).
Output token mint address (the token being purchased).
Amount of input token to swap, expressed in the smallest unit (e.g., lamports for SOL).
Amount of input token to swap, expressed in the smallest unit (e.g., lamports for SOL).
Response
Quote fetched successfully. Returns expected output amount and swap details.
Example response
{
"result": {
"inputMint": "So11111111111111111111111111111111111111112",
"outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
"inputAmount": "100000000",
"outputAmount": "95423156",
"inputUsdValue": 10.5,
"outputUsdValue": 10.48,
"slippageBps": 50,
"requestId": "uuid-1234-5678"
}
}