Calculate the expected output amount when swapping a fixed input amount. Useful for displaying a preview before transaction building.
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 (base58-encoded public key).
Mint address of the output token (base58-encoded public key).
Input amount in lamports (smallest unit of SPL tokens). Must be a non-negative integer string.
Maximum slippage tolerance in basis points (0–10000). 1 bps = 0.01%.
Optional referrer fee in basis points (0–10000). Only used if you have a referrer authority.
Solana transaction version. V0 uses address lookup tables; LEGACY is the traditional format.
V0, LEGACY