Passer au contenu principal

Swap Websocket RPC Method - Metis

Chargement...

Mis à jour le
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)

Paramètres

jsonrpc
chaîne de caractères
OBLIGATOIRE
Chargement...
method
chaîne de caractères
OBLIGATOIRE
Chargement...
ID
entier
OBLIGATOIRE
Chargement...
params
objet
OBLIGATOIRE
Chargement...
userPublicKey
chaîne de caractères
OBLIGATOIRE
Chargement...
payer
chaîne de caractères
Chargement...
wrapAndUnwrapSol
booléen
Chargement...
useSharedAccounts
booléen
Chargement...
feeAccount
chaîne de caractères
Chargement...
trackingAccount
chaîne de caractères
Chargement...
computeUnitPriceMicroLamports
entier
Chargement...
prioritizationFeeLamports
objet
Chargement...
priorityLevelWithMaxLamports
objet
Chargement...
priorityLevel
chaîne de caractères
Chargement...
maxLamports
entier
Chargement...
global
booléen
Chargement...
jitoTipLamports
entier
Chargement...
jitoTipLamportsWithPayer
objet
Chargement...
lamports
entier
OBLIGATOIRE
Chargement...
payer
chaîne de caractères
OBLIGATOIRE
Chargement...
asLegacyTransaction
booléen
Chargement...
useTokenLedger
booléen
Chargement...
destinationTokenAccount
chaîne de caractères
Chargement...
nativeDestinationAccount
chaîne de caractères
Chargement...
dynamicComputeUnitLimit
booléen
Chargement...
skipUserAccountsRpcCalls
booléen
Chargement...
dynamicSlippage
booléen
Chargement...
blockhashSlotsToExpiry
entier
Chargement...
quoteResponse
objet
OBLIGATOIRE
Chargement...
inputMint
chaîne de caractères
OBLIGATOIRE
Chargement...
inAmount
chaîne de caractères
OBLIGATOIRE
Chargement...
outputMint
chaîne de caractères
OBLIGATOIRE
Chargement...
outAmount
chaîne de caractères
OBLIGATOIRE
Chargement...
otherAmountThreshold
chaîne de caractères
OBLIGATOIRE
Chargement...
swapMode
chaîne de caractères
OBLIGATOIRE
Chargement...
slippageBps
entier
OBLIGATOIRE
Chargement...
platformFee
objet
Chargement...
montant
chaîne de caractères
Chargement...
feeBps
entier
Chargement...
priceImpactPct
chaîne de caractères
OBLIGATOIRE
Chargement...
routePlan
tableau
OBLIGATOIRE
Chargement...
swapInfo
objet
OBLIGATOIRE
Chargement...
ammKey
chaîne de caractères
OBLIGATOIRE
Chargement...
étiquette
chaîne de caractères
Chargement...
inputMint
chaîne de caractères
OBLIGATOIRE
Chargement...
outputMint
chaîne de caractères
OBLIGATOIRE
Chargement...
inAmount
chaîne de caractères
OBLIGATOIRE
Chargement...
outAmount
chaîne de caractères
OBLIGATOIRE
Chargement...
feeAmount
chaîne de caractères
OBLIGATOIRE
Chargement...
feeMint
chaîne de caractères
OBLIGATOIRE
Chargement...
percent
entier
OBLIGATOIRE
Chargement...
bps
entier
Chargement...
instructionVersion
chaîne de caractères
Chargement...
contextSlot
entier
Chargement...
timeTaken
entier
Chargement...

Renvoie

jsonrpc
chaîne de caractères
Chargement...
ID
entier
Chargement...
résultat
objet
Chargement...
swapTransaction
chaîne de caractères
Chargement...
lastValidBlockHeight
entier
Chargement...
prioritizationFeeLamports
objet
Chargement...
Requête
Vous n'avez pas encore de compte ?
Créez votre endpoint Quicknode en quelques secondes et commencez à développer
Commencez gratuitement