Swap Websocket RPC Method - Metis
Please note that this method is only available for paid subscribers of Metis - Jupiter V6 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)
Parameters
jsonrpc
string
REQUIRED
Loading...
method
string
REQUIRED
Loading...
id
integer
REQUIRED
Loading...
params
object
REQUIRED
Loading...
useQNMarketCache
boolean
Loading...
userPublicKey
string
REQUIRED
Loading...
wrapAndUnwrapSol
boolean
Loading...
useSharedAccounts
boolean
Loading...
feeAccount
string
Loading...
computeUnitPriceMicroLamports
integer
Loading...
prioritizationFeeLamports
object
Loading...
priorityLevelWithMaxLamports
object
Loading...
priorityLevel
string
Loading...
maxLamports
integer
Loading...
jitoTipLamports
integer
Loading...
asLegacyTransaction
boolean
Loading...
useTokenLedger
boolean
Loading...
destinationTokenAccount
string
Loading...
dynamicComputeUnitLimit
boolean
Loading...
skipUserAccountsRpcCalls
boolean
Loading...
quoteResponse
object
REQUIRED
Loading...
inputMint
string
REQUIRED
Loading...
inAmount
string
REQUIRED
Loading...
outputMint
string
REQUIRED
Loading...
outAmount
string
REQUIRED
Loading...
otherAmountThreshold
string
REQUIRED
Loading...
swapMode
string
REQUIRED
Loading...
slippageBps
integer
REQUIRED
Loading...
platformFee
object
Loading...
amount
string
Loading...
feeBps
integer
Loading...
priceImpactPct
string
REQUIRED
Loading...
routePlan
array
REQUIRED
Loading...
swapInfo
object
REQUIRED
Loading...
ammKey
string
REQUIRED
Loading...
label
string
Loading...
inputMint
string
REQUIRED
Loading...
outputMint
string
REQUIRED
Loading...
inAmount
string
REQUIRED
Loading...
outAmount
string
REQUIRED
Loading...
feeAmount
string
REQUIRED
Loading...
feeMint
string
REQUIRED
Loading...
percent
integer
REQUIRED
Loading...
contextSlot
integer
Loading...
timeTaken
integer
Loading...
Returns
jsonrpc
string
Loading...
id
integer
Loading...
result
object
Loading...
swapTransaction
string
Loading...
lastValidBlockHeight
integer
Loading...
prioritizationFeeLamports
object
Loading...
Request
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free