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

クエリパラメータ

inputMint
string
必須

入力トークンのミント・アドレス(base58 エンコード公開鍵)。

outputMint
string
必須

出力トークンのミント・アドレス(base58 エンコード公開鍵)。

amount
string
必須

入力額(ラムポート、SPL トークンの最小単位)。負でない整数文字列である必要があります。

slippageBps
string
必須

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

referrerBps
string

オプションのリファラー・フィー(ベーシス・ポイント、0~10000)。リファラー・オーソリティがある場合のみ使用。

txVersion
enum<string>
必須

Solana トランザクション・バージョン。V0 はアドレス・ルックアップ・テーブルを使用、LEGACY は従来の形式です。

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

レスポンス

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

id
string

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

:

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

success
boolean

compute が成功したかどうか。

:

true

version
string

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

:

"V1"

data
object

スワップ計算結果。