Zum Hauptinhalt springen
GET
/
compute
/
swap-base-in
Swap-Quote berechnen (Base-Input)
curl --request GET \
  --url https://transaction-v1.raydium.io/compute/swap-base-in
{
  "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 (Public Key in Base58).

outputMint
string
erforderlich

Mint-Adresse des Ausgabetokens (Public Key in Base58).

amount
string
erforderlich

Eingabebetrag in Lamports (kleinste Einheit von SPL-Tokens). Muss ein nicht-negativer Integer-String sein.

slippageBps
string
erforderlich

Maximale Slippage-Toleranz in Basispunkten (0–10000). 1 bps = 0,01 %.

referrerBps
string

Optionale Referrer-Gebühr in Basispunkten (0–10000). Wird nur verwendet, wenn Sie über eine Referrer-Authority verfügen.

txVersion
enum<string>
erforderlich

Solana-Transaktionsversion. V0 verwendet Address Lookup Tables; LEGACY ist das herkömmliche Format.

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.