Passer au contenu principal

/swap REST API Endpoint - Metis

Chargement...

Mis à jour le
Dec 18, 2025

/swap REST API Endpoint - Metis

Please note that this method is available for Free and Paid subscribers of Metis - Jupiter Swap API, along with jupiterapi.com users.
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)

GooseFX Gamma API: When using the /quote endpoint with the setting of dexes=Gamma, you should include the query parameter dexes=Gamma when using this endpoint if you want to route directly to the GooseFX Gamma API. This is in addition to setting dexes=Gamma on your initial /quote request.

Paramètres de requête

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...
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

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