Swap Websocket RPC Method - Swap API
Please note that this method is only available for paid subscribers of 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 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)
Paramètres
jsonrpc
chaîne de caractères
OBLIGATOIRE
Chargement en cours...
method
chaîne de caractères
OBLIGATOIRE
Chargement en cours...
id
entier
OBLIGATOIRE
Chargement en cours...
params
objet
OBLIGATOIRE
Chargement en cours...
userPublicKey
chaîne de caractères
OBLIGATOIRE
Chargement en cours...
payer
chaîne de caractères
Chargement en cours...
wrapAndUnwrapSol
booléen
Chargement en cours...
useSharedAccounts
booléen
Chargement en cours...
feeAccount
chaîne de caractères
Chargement en cours...
trackingAccount
chaîne de caractères
Chargement en cours...
computeUnitPriceMicroLamports
entier
Chargement en cours...
prioritizationFeeLamports
objet
Chargement en cours...
priorityLevelWithMaxLamports
objet
Chargement en cours...
priorityLevel
chaîne de caractères
Chargement en cours...
maxLamports
entier
Chargement en cours...
global
booléen
Chargement en cours...
jitoTipLamports
entier
Chargement en cours...
jitoTipLamportsWithPayer
objet
Chargement en cours...
lamports
entier
OBLIGATOIRE
Chargement en cours...
payer
chaîne de caractères
OBLIGATOIRE
Chargement en cours...
asLegacyTransaction
booléen
Chargement en cours...
useTokenLedger
booléen
Chargement en cours...
destinationTokenAccount
chaîne de caractères
Chargement en cours...
nativeDestinationAccount
chaîne de caractères
Chargement en cours...
dynamicComputeUnitLimit
booléen
Chargement en cours...
skipUserAccountsRpcCalls
booléen
Chargement en cours...
dynamicSlippage
booléen
Chargement en cours...
blockhashSlotsToExpiry
entier
Chargement en cours...
quoteResponse
objet
OBLIGATOIRE
Chargement en cours...
inputMint
chaîne de caractères
OBLIGATOIRE
Chargement en cours...
inAmount
chaîne de caractères
OBLIGATOIRE
Chargement en cours...
outputMint
chaîne de caractères
OBLIGATOIRE
Chargement en cours...
outAmount
chaîne de caractères
OBLIGATOIRE
Chargement en cours...
otherAmountThreshold
chaîne de caractères
OBLIGATOIRE
Chargement en cours...
swapMode
chaîne de caractères
OBLIGATOIRE
Chargement en cours...
slippageBps
entier
OBLIGATOIRE
Chargement en cours...
platformFee
objet
Chargement en cours...
montant
chaîne de caractères
Chargement en cours...
feeBps
entier
Chargement en cours...
priceImpactPct
chaîne de caractères
OBLIGATOIRE
Chargement en cours...
routePlan
tableau
OBLIGATOIRE
Chargement en cours...
swapInfo
objet
OBLIGATOIRE
Chargement en cours...
ammKey
chaîne de caractères
OBLIGATOIRE
Chargement en cours...
label
chaîne de caractères
Chargement en cours...
inputMint
chaîne de caractères
OBLIGATOIRE
Chargement en cours...
outputMint
chaîne de caractères
OBLIGATOIRE
Chargement en cours...
inAmount
chaîne de caractères
OBLIGATOIRE
Chargement en cours...
outAmount
chaîne de caractères
OBLIGATOIRE
Chargement en cours...
feeAmount
chaîne de caractères
OBLIGATOIRE
Chargement en cours...
feeMint
chaîne de caractères
OBLIGATOIRE
Chargement en cours...
percent
entier
OBLIGATOIRE
Chargement en cours...
bps
entier
Chargement en cours...
instructionVersion
chaîne de caractères
Chargement en cours...
contextSlot
entier
Chargement en cours...
timeTaken
entier
Chargement en cours...
Retours
jsonrpc
chaîne de caractères
Chargement en cours...
id
entier
Chargement en cours...
résultat
objet
Chargement en cours...
swapTransaction
chaîne de caractères
Chargement en cours...
lastValidBlockHeight
entier
Chargement en cours...
prioritizationFeeLamports
objet
Chargement en cours...
Demande
Vous n'avez pas encore de compte ?
Créez votreendpoint Quicknode endpoint quelques secondes et commencez à développer
Commencez gratuitement