跳至主要內容

/swap-instructions REST API Endpoint - Metis

載入中...

更新於
Dec 18, 2025

/swap-instructions REST API Endpoint - Metis

Please note that this method is available for Free and Paid subscribers of Metis - Jupiter Swap API, along with jupiterapi.com users.
Solana Kit includes the ability to customize RPC methods and transports, allowing you to seamlessly integrate Quicknode Marketplace add-ons into your applications. For more information on how to use Quicknode Marketplace 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
字串
必填
載入中...
標籤
字串
載入中...
inputMint
字串
必填
載入中...
outputMint
字串
必填
載入中...
inAmount
字串
必填
載入中...
outAmount
字串
必填
載入中...
feeAmount
字串
必填
載入中...
feeMint
字串
必填
載入中...
percent
整數
必填
載入中...
bps
整數
載入中...
instructionVersion
字串
載入中...
contextSlot
整數
載入中...
timeTaken
整數
載入中...

退貨

tokenLedgerInstruction
物件
載入中...
programId
字串
載入中...
accounts
陣列
載入中...
pubkey
字串
載入中...
isSigner
布林值
載入中...
isWritable
布林值
載入中...
資料
字串
載入中...
computeBudgetInstructions
陣列
載入中...
programId
字串
載入中...
accounts
陣列
載入中...
pubkey
字串
載入中...
isSigner
布林值
載入中...
isWritable
布林值
載入中...
資料
字串
載入中...
setupInstructions
陣列
載入中...
programId
字串
載入中...
accounts
陣列
載入中...
pubkey
字串
載入中...
isSigner
布林值
載入中...
isWritable
布林值
載入中...
資料
字串
載入中...
swapInstruction
物件
載入中...
programId
字串
載入中...
accounts
陣列
載入中...
pubkey
字串
載入中...
isSigner
布林值
載入中...
isWritable
布林值
載入中...
資料
字串
載入中...
cleanupInstruction
物件
載入中...
programId
字串
載入中...
accounts
陣列
載入中...
pubkey
字串
載入中...
isSigner
布林值
載入中...
isWritable
布林值
載入中...
資料
字串
載入中...
otherInstructions
陣列
載入中...
addressLookupTableAddresses
陣列
載入中...
prioritizationFeeLamports
整數
載入中...
請求
還沒有帳號嗎?
只需幾秒鐘即可建立您的 Quicknode 端點,並開始建置
立即免費開始使用