Skip to main content
GET
/
compute
/
swap-base-out
Compute swap quote (base output)
curl --request GET \
  --url https://transaction-v1.raydium.io/compute/swap-base-out
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "success": true,
  "version": "V1",
  "data": {
    "inputAmount": "<string>",
    "outputAmount": "<string>",
    "priceImpact": "<string>",
    "routes": [
      {}
    ]
  }
}

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

inputMint
string
required

Mint address of the input token.

outputMint
string
required

Mint address of the output token.

amount
string
required

Desired output amount in the smallest unit (lamports).

slippageBps
string
required

Maximum slippage tolerance in basis points (0–10000).

txVersion
enum<string>
required

Solana transaction version.

Available options:
V0,
LEGACY

Response

Swap quote computed successfully.

id
string

Unique request identifier (UUID).

Example:

"550e8400-e29b-41d4-a716-446655440000"

success
boolean

Whether the compute succeeded.

Example:

true

version
string

API response version.

Example:

"V1"

data
object

Swap computation result.