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

입력 금액(lamport, SPL 토큰의 최소 단위)입니다. 음이 아닌 정수 문자열이어야 합니다.

slippageBps
string
필수

최대 슬리피지 허용도(basis points, 0–10000)입니다. 1 bps = 0.01%입니다.

referrerBps
string

선택 사항인 레퍼러 수수료(basis points, 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

스왑 계산 결과입니다.