Ir diretamente para o conteúdo principal

Swap Websocket RPC Method - Metis

A carregar...

Atualizado em
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)

Parâmetros

jsonrpc
cadeia de caracteres
OBRIGATÓRIO
A carregar...
method
cadeia de caracteres
OBRIGATÓRIO
A carregar...
id
número inteiro
OBRIGATÓRIO
A carregar...
params
objeto
OBRIGATÓRIO
A carregar...
userPublicKey
cadeia de caracteres
OBRIGATÓRIO
A carregar...
payer
cadeia de caracteres
A carregar...
wrapAndUnwrapSol
booleano
A carregar...
useSharedAccounts
booleano
A carregar...
feeAccount
cadeia de caracteres
A carregar...
trackingAccount
cadeia de caracteres
A carregar...
computeUnitPriceMicroLamports
número inteiro
A carregar...
prioritizationFeeLamports
objeto
A carregar...
priorityLevelWithMaxLamports
objeto
A carregar...
priorityLevel
cadeia de caracteres
A carregar...
maxLamports
número inteiro
A carregar...
global
booleano
A carregar...
jitoTipLamports
número inteiro
A carregar...
jitoTipLamportsWithPayer
objeto
A carregar...
lamports
número inteiro
OBRIGATÓRIO
A carregar...
payer
cadeia de caracteres
OBRIGATÓRIO
A carregar...
asLegacyTransaction
booleano
A carregar...
useTokenLedger
booleano
A carregar...
destinationTokenAccount
cadeia de caracteres
A carregar...
nativeDestinationAccount
cadeia de caracteres
A carregar...
dynamicComputeUnitLimit
booleano
A carregar...
skipUserAccountsRpcCalls
booleano
A carregar...
dynamicSlippage
booleano
A carregar...
blockhashSlotsToExpiry
número inteiro
A carregar...
quoteResponse
objeto
OBRIGATÓRIO
A carregar...
inputMint
cadeia de caracteres
OBRIGATÓRIO
A carregar...
inAmount
cadeia de caracteres
OBRIGATÓRIO
A carregar...
outputMint
cadeia de caracteres
OBRIGATÓRIO
A carregar...
outAmount
cadeia de caracteres
OBRIGATÓRIO
A carregar...
otherAmountThreshold
cadeia de caracteres
OBRIGATÓRIO
A carregar...
swapMode
cadeia de caracteres
OBRIGATÓRIO
A carregar...
slippageBps
número inteiro
OBRIGATÓRIO
A carregar...
platformFee
objeto
A carregar...
montante
cadeia de caracteres
A carregar...
feeBps
número inteiro
A carregar...
priceImpactPct
cadeia de caracteres
OBRIGATÓRIO
A carregar...
routePlan
matriz
OBRIGATÓRIO
A carregar...
swapInfo
objeto
OBRIGATÓRIO
A carregar...
ammKey
cadeia de caracteres
OBRIGATÓRIO
A carregar...
rótulo
cadeia de caracteres
A carregar...
inputMint
cadeia de caracteres
OBRIGATÓRIO
A carregar...
outputMint
cadeia de caracteres
OBRIGATÓRIO
A carregar...
inAmount
cadeia de caracteres
OBRIGATÓRIO
A carregar...
outAmount
cadeia de caracteres
OBRIGATÓRIO
A carregar...
feeAmount
cadeia de caracteres
OBRIGATÓRIO
A carregar...
feeMint
cadeia de caracteres
OBRIGATÓRIO
A carregar...
percent
número inteiro
OBRIGATÓRIO
A carregar...
bps
número inteiro
A carregar...
instructionVersion
cadeia de caracteres
A carregar...
contextSlot
número inteiro
A carregar...
timeTaken
número inteiro
A carregar...

Devoluções

jsonrpc
cadeia de caracteres
A carregar...
id
número inteiro
A carregar...
resultado
objeto
A carregar...
swapTransaction
cadeia de caracteres
A carregar...
lastValidBlockHeight
número inteiro
A carregar...
prioritizationFeeLamports
objeto
A carregar...
Pedido
Ainda não tem uma conta?
Crie o seu ponto de extremidade Quicknode em segundos e comece a desenvolver
Comece gratuitamente