メインコンテンツへスキップ
GET
/
compute
/
swap-base-out
スワップ・クオート計算(基本出力)
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.

クエリパラメータ

inputMint
string
必須

入力トークンのミント・アドレス。

outputMint
string
必須

出力トークンのミント・アドレス。

amount
string
必須

目的の出力額(最小単位、ラムポート)。

slippageBps
string
必須

最大スリッページ・トレランス(ベーシス・ポイント、0~10000)。

txVersion
enum<string>
必須

Solana トランザクション・バージョン。

利用可能なオプション:
V0,
LEGACY

レスポンス

スワップ・クオートが正常に計算されました。

id
string

一意のリクエスト識別子(UUID)。

:

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

success
boolean

compute が成功したかどうか。

:

true

version
string

API レスポンス・バージョン。

:

"V1"

data
object

スワップ計算結果。