Zum Hauptinhalt springen
POST
/
transaction
/
swap-base-out
Swap-Transaktion erstellen (Base-Output)
curl --request POST \
  --url https://transaction-v1.raydium.io/transaction/swap-base-out \
  --header 'Content-Type: application/json' \
  --data '
{
  "wallet": "11111111111111111111111111111111",
  "swapResponse": {
    "id": "<string>",
    "success": true,
    "version": "<string>",
    "data": {}
  },
  "txVersion": "V0",
  "computeUnitPriceMicroLamports": "1000",
  "wrapSol": false,
  "unwrapSol": false,
  "inputAccount": "TokenAccount1111111111111111111111111111111111",
  "outputAccount": "TokenAccount2222222222222222222222222222222222",
  "jitoInfo": {
    "address": "<string>",
    "amount": "<string>"
  },
  "referrerWallet": "ReferrerWallet1111111111111111111111111111111111"
}
'
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "success": true,
  "version": "V1",
  "data": {
    "transaction": "<string>",
    "addressLookupTableAddresses": [
      "<string>"
    ]
  }
}

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.

Body

application/json
wallet
string
erforderlich

Wallet-Adresse des Signers (base58).

Beispiel:

"11111111111111111111111111111111"

swapResponse
object
erforderlich

Das vollständige Antwortobjekt des compute-Endpunkts.

txVersion
enum<string>
erforderlich

Solana-Transaktionsversion.

Verfügbare Optionen:
V0,
LEGACY
Beispiel:

"V0"

computeUnitPriceMicroLamports
string
erforderlich

Compute-Unit-Preis in Mikro-Lamports (für Priority Fees).

Beispiel:

"1000"

wrapSol
boolean

Gibt an, ob SOL gewrappt werden soll, falls die Eingabe natives SOL ist.

Beispiel:

false

unwrapSol
boolean

Gibt an, ob WSOL in der Ausgabe zu SOL entwrappt werden soll.

Beispiel:

false

inputAccount
string

Optionale Token-Account-Adresse für die Eingabe. Erforderlich, wenn SOL nicht gewrappt wird.

Beispiel:

"TokenAccount1111111111111111111111111111111111"

outputAccount
string

Optionale Token-Account-Adresse für die Ausgabe.

Beispiel:

"TokenAccount2222222222222222222222222222222222"

jitoInfo
object

Optionale Jito-Bundle-Parameter für MEV-Schutz.

referrerWallet
string

Optionale Referrer-Wallet-Adresse für die Gebührenerfassung.

Beispiel:

"ReferrerWallet1111111111111111111111111111111111"

Antwort

Serialisierte Transaktion erfolgreich erstellt.

id
string

Eindeutiger Request-Identifier.

Beispiel:

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

success
boolean

Gibt an, ob der Transaktionsaufbau erfolgreich war.

Beispiel:

true

version
string
Beispiel:

"V1"

data
object

Transaktionsdaten.