Compute swap quote (base output)
Compute
Compute swap quote (base output)
Calculate the required input amount to achieve a desired output amount. Useful for swaps where you know the target output.
GET
Compute swap quote (base output)
Documentation Index
Fetch the complete documentation index at: https://docs.raydium.io/llms.txt
Use this file to discover all available pages before exploring further.
Query Parameters
Mint address of the input token.
Mint address of the output token.
Desired output amount in the smallest unit (lamports).
Maximum slippage tolerance in basis points (0–10000).
Solana transaction version.
Available options:
V0, LEGACY 
