跳转至主要内容

Swap Websocket RPC Method - Metis

正在加载...

更新于
Dec 18, 2025

Swap Websocket RPC Method - Metis

Please note that this method is only available for paid subscribers of Metis - Jupiter Swap API.
To establish a WebSocket connection, you need to simply append '/ws' to your endpoint URL. For parameters, you can include them as URL arguments referred to as "params".
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)

参数

jsonrpc
字符串
必填
正在加载...
method
字符串
必填
正在加载...
id
整数
必填
正在加载...
params
对象
必填
正在加载...
userPublicKey
字符串
必填
正在加载...
payer
字符串
正在加载...
wrapAndUnwrapSol
布尔型
正在加载...
useSharedAccounts
布尔型
正在加载...
feeAccount
字符串
正在加载...
trackingAccount
字符串
正在加载...
computeUnitPriceMicroLamports
整数
正在加载...
prioritizationFeeLamports
对象
正在加载...
priorityLevelWithMaxLamports
对象
正在加载...
priorityLevel
字符串
正在加载...
maxLamports
整数
正在加载...
global
布尔型
正在加载...
jitoTipLamports
整数
正在加载...
jitoTipLamportsWithPayer
对象
正在加载...
lamports
整数
必填
正在加载...
payer
字符串
必填
正在加载...
asLegacyTransaction
布尔型
正在加载...
useTokenLedger
布尔型
正在加载...
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
整数
正在加载...

退货

jsonrpc
字符串
正在加载...
id
整数
正在加载...
结果
对象
正在加载...
swapTransaction
字符串
正在加载...
lastValidBlockHeight
整数
正在加载...
prioritizationFeeLamports
对象
正在加载...
请求
还没有账号吗?
只需几秒钟即可创建您的 Quicknode 端点,并开始构建
免费开始使用