메인 콘텐츠로 건너뛰기
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
필수

원하는 출력 금액(최소 단위, lamport)입니다.

slippageBps
string
필수

최대 슬리피지 허용도(basis points, 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

스왑 계산 결과입니다.