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 には、RPC メソッドやトランスポートをカスタマイズする機能が含まれており、Quicknode Marketplace のアドオンをアプリケーションにシームレスに統合することができます。Solana Kit での Quicknode Marketplace アドオンの使用方法に関する詳細については、以下のガイドをご覧ください:「Solana Kit を使用した Quicknode アドオンの使い方(パート 1)」および「Solana Kit を使用した Quicknode アドオンの使い方(パート 2)」
パラメータ
jsonrpc
文字列
必須
読み込み中...
メソッド
文字列
必須
読み込み中...
id
整数
必須
読み込み中...
params
オブジェクト
必須
読み込み中...
userPublicKey
文字列
必須
読み込み中...
payer
文字列
読み込み中...
wrapAndUnwrapSol
ブール値
読み込み中...
useSharedAccounts
ブール値
読み込み中...
feeAccount
文字列
読み込み中...
trackingAccount
文字列
読み込み中...
computeUnitPriceMicroLamports
整数
読み込み中...
優先順位設定・手数料・Lamports
オブジェクト
読み込み中...
優先度レベルと最大ラムポート数
オブジェクト
読み込み中...
優先度レベル
文字列
読み込み中...
maxLamports
整数
読み込み中...
グローバル
ブール値
読み込み中...
jitoTipLamports
整数
読み込み中...
jitoTipLamportsWithPayer
オブジェクト
読み込み中...
ラムポート
整数
必須
読み込み中...
payer
文字列
必須
読み込み中...
asLegacyTransaction
ブール値
読み込み中...
useTokenLedger
ブール値
読み込み中...
destinationTokenAccount
文字列
読み込み中...
nativeDestinationAccount
文字列
読み込み中...
dynamicComputeUnitLimit
ブール値
読み込み中...
skipUserAccountsRpcCalls
ブール値
読み込み中...
dynamicSlippage
ブール値
読み込み中...
blockhashSlotsToExpiry
整数
読み込み中...
quoteResponse
オブジェクト
必須
読み込み中...
inputMint
文字列
必須
読み込み中...
inAmount
文字列
必須
読み込み中...
outputMint
文字列
必須
読み込み中...
outAmount
文字列
必須
読み込み中...
otherAmountThreshold
文字列
必須
読み込み中...
swapMode
文字列
必須
読み込み中...
スリッページ(Bps)
整数
必須
読み込み中...
platformFee
オブジェクト
読み込み中...
金額
文字列
読み込み中...
feeBps
整数
読み込み中...
priceImpactPct
文字列
必須
読み込み中...
routePlan
配列
必須
読み込み中...
swapInfo
オブジェクト
必須
読み込み中...
ammKey
文字列
必須
読み込み中...
ラベル
文字列
読み込み中...
inputMint
文字列
必須
読み込み中...
outputMint
文字列
必須
読み込み中...
inAmount
文字列
必須
読み込み中...
outAmount
文字列
必須
読み込み中...
feeAmount
文字列
必須
読み込み中...
feeMint
文字列
必須
読み込み中...
パーセント
整数
必須
読み込み中...
bps
整数
読み込み中...
instructionVersion
文字列
読み込み中...
contextSlot
整数
読み込み中...
timeTaken
整数
読み込み中...
返品
jsonrpc
文字列
読み込み中...
id
整数
読み込み中...
結果
オブジェクト
読み込み中...
swapTransaction
文字列
読み込み中...
lastValidBlockHeight
整数
読み込み中...
優先順位設定・手数料・Lamports
オブジェクト
読み込み中...
リクエスト