メインコンテンツへスキップ

/swap REST API Endpoint - Swap API

読み込み中...

更新日:
Aug 09, 2026

/swap REST API Endpoint - Swap API

Please note that this method is available for Free and Paid subscribers of Swap API, along with jupiterapi.com users.
Solana Kit includes the ability to customize RPC methods and transports, allowing you to seamlessly integrate Quicknode add-ons into your applications. For more information on how to use Quicknode add-ons with Solana Kit, check out these guides: How to Use Quicknode Add-ons using Solana Kit (Part 1) and How to Use Quicknode Add-ons using Solana Kit (Part 2)

GooseFX Gamma API: When using the /quote endpoint with the setting of dexes=Gamma, you should include the query parameter dexes=Gamma when using this endpoint if you want to route directly to the GooseFX Gamma API. This is in addition to setting dexes=Gamma on your initial /quote request.

クエリパラメータ

userPublicKey
文字列
必須
読み込み中...
payer
文字列
読み込み中...
wrapAndUnwrapSol
ブール値
読み込み中...
useSharedAccounts
ブール値
読み込み中...
feeAccount
文字列
読み込み中...
trackingAccount
文字列
読み込み中...
computeUnitPriceMicroLamports
整数
読み込み中...
prioritizationFeeLamports
オブジェクト
読み込み中...
priorityLevelWithMaxLamports
オブジェクト
読み込み中...
priorityLevel
文字列
読み込み中...
maxLamports
整数
読み込み中...
global
ブール値
読み込み中...
jitoTipLamports
整数
読み込み中...
jitoTipLamportsWithPayer
オブジェクト
読み込み中...
lamports
整数
必須
読み込み中...
payer
文字列
必須
読み込み中...
asLegacyTransaction
ブール値
読み込み中...
destinationTokenAccount
文字列
読み込み中...
nativeDestinationAccount
文字列
読み込み中...
dynamicComputeUnitLimit
ブール値
読み込み中...
skipUserAccountsRpcCalls
ブール値
読み込み中...
dynamicSlippage
ブール値
読み込み中...
blockhashSlotsToExpiry
整数
読み込み中...
quoteResponse
オブジェクト
必須
読み込み中...
inputMint
文字列
必須
読み込み中...
inAmount
文字列
必須
読み込み中...
outputMint
文字列
必須
読み込み中...
outAmount
文字列
必須
読み込み中...
otherAmountThreshold
文字列
必須
読み込み中...
swapMode
文字列
必須
読み込み中...
slippageBps
整数
必須
読み込み中...
platformFee
オブジェクト
読み込み中...
金額
文字列
読み込み中...
feeBps
整数
読み込み中...
priceImpactPct
文字列
必須
読み込み中...
routePlan
配列
必須
読み込み中...
swapInfo
オブジェクト
必須
読み込み中...
ammKey
文字列
必須
読み込み中...
label
文字列
読み込み中...
inputMint
文字列
必須
読み込み中...
outputMint
文字列
必須
読み込み中...
inAmount
文字列
必須
読み込み中...
outAmount
文字列
必須
読み込み中...
feeAmount
文字列
必須
読み込み中...
feeMint
文字列
必須
読み込み中...
percent
整数
必須
読み込み中...
bps
整数
読み込み中...
instructionVersion
文字列
読み込み中...
contextSlot
整数
読み込み中...
timeTaken
整数
読み込み中...

返します

swapTransaction
文字列
読み込み中...
lastValidBlockHeight
整数
読み込み中...
prioritizationFeeLamports
整数
読み込み中...
リクエスト
まだアカウントをお持ちではありませんか?
Create your Quicknode endpoint in seconds and start building
今すぐ無料で始めましょう