Calculate the required input amount to achieve a desired output amount. Useful for swaps where you know the target 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.
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.
V0, LEGACY