Generate a serialized swap transaction for a desired output amount.
Requires a successful compute response from /compute/swap-base-out.
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.
Signer wallet address (base58).
"11111111111111111111111111111111"
The complete response object from the compute endpoint.
Solana transaction version.
V0, LEGACY "V0"
Compute unit price in micro-lamports (for priority fees).
"1000"
Whether to wrap SOL if the input is native SOL.
false
Whether to unwrap WSOL to SOL in the output.
false
Optional token account address for input. Required if not wrapping SOL.
"TokenAccount1111111111111111111111111111111111"
Optional token account address for output.
"TokenAccount2222222222222222222222222222222222"
Optional Jito bundle params for MEV protection.
Optional referrer wallet address for fee collection.
"ReferrerWallet1111111111111111111111111111111111"