Zum Hauptinhalt springen
GET
/
compute
/
swap-base-out
Swap-Quote berechnen (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.

Abfrageparameter

inputMint
string
erforderlich

Mint-Adresse des Eingabetokens.

outputMint
string
erforderlich

Mint-Adresse des Ausgabetokens.

amount
string
erforderlich

Gewünschter Ausgabebetrag in der kleinsten Einheit (Lamports).

slippageBps
string
erforderlich

Maximale Slippage-Toleranz in Basispunkten (0–10000).

txVersion
enum<string>
erforderlich

Solana-Transaktionsversion.

Verfügbare Optionen:
V0,
LEGACY

Antwort

Swap-Quote erfolgreich berechnet.

id
string

Eindeutiger Request-Identifier (UUID).

Beispiel:

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

success
boolean

Gibt an, ob die Berechnung erfolgreich war.

Beispiel:

true

version
string

Version der API-Antwort.

Beispiel:

"V1"

data
object

Ergebnis der Swap-Berechnung.