Aller directement au contenu principal

/swap-instructions REST API Endpoint - Swap API

Chargement en cours...

Mis à jour le
Aug 09, 2026

/swap-instructions REST API Endpoint - Swap API

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

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

tokenLedgerInstruction
objet
Chargement en cours...
programId
chaîne de caractères
Chargement en cours...
accounts
tableau
Chargement en cours...
pubkey
chaîne de caractères
Chargement en cours...
isSigner
booléen
Chargement en cours...
isWritable
booléen
Chargement en cours...
données
chaîne de caractères
Chargement en cours...
computeBudgetInstructions
tableau
Chargement en cours...
programId
chaîne de caractères
Chargement en cours...
accounts
tableau
Chargement en cours...
pubkey
chaîne de caractères
Chargement en cours...
isSigner
booléen
Chargement en cours...
isWritable
booléen
Chargement en cours...
données
chaîne de caractères
Chargement en cours...
setupInstructions
tableau
Chargement en cours...
programId
chaîne de caractères
Chargement en cours...
accounts
tableau
Chargement en cours...
pubkey
chaîne de caractères
Chargement en cours...
isSigner
booléen
Chargement en cours...
isWritable
booléen
Chargement en cours...
données
chaîne de caractères
Chargement en cours...
swapInstruction
objet
Chargement en cours...
programId
chaîne de caractères
Chargement en cours...
accounts
tableau
Chargement en cours...
pubkey
chaîne de caractères
Chargement en cours...
isSigner
booléen
Chargement en cours...
isWritable
booléen
Chargement en cours...
données
chaîne de caractères
Chargement en cours...
cleanupInstruction
objet
Chargement en cours...
programId
chaîne de caractères
Chargement en cours...
accounts
tableau
Chargement en cours...
pubkey
chaîne de caractères
Chargement en cours...
isSigner
booléen
Chargement en cours...
isWritable
booléen
Chargement en cours...
données
chaîne de caractères
Chargement en cours...
otherInstructions
tableau
Chargement en cours...
addressLookupTableAddresses
tableau
Chargement en cours...
prioritizationFeeLamports
entier
Chargement en cours...
Demande
Vous n'avez pas encore de compte ?
Créez votreendpoint Quicknode endpoint quelques secondes et commencez à développer
Commencez gratuitement