Skip to main content

/swap-instructions REST API Endpoint - Metis

Loading...

Updated on
Jun 02, 2025

/swap-instructions REST API Endpoint - Metis

Please note that this method is available for Free and Paid subscribers of Metis - Jupiter V6 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)

Important: Always use the parameter useQNMarketCache=true when working with new markets that have been added via POST /markets. Please see /markets documentation for more details.

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.

Query Parameters

userPublicKey
string
REQUIRED
Loading...
payer
string
Loading...
wrapAndUnwrapSol
boolean
Loading...
useSharedAccounts
boolean
Loading...
feeAccount
string
Loading...
trackingAccount
string
Loading...
computeUnitPriceMicroLamports
integer
Loading...
prioritizationFeeLamports
object
Loading...
priorityLevelWithMaxLamports
object
Loading...
priorityLevel
string
Loading...
maxLamports
integer
Loading...
jitoTipLamports
integer
Loading...
asLegacyTransaction
boolean
Loading...
destinationTokenAccount
string
Loading...
dynamicComputeUnitLimit
boolean
Loading...
skipUserAccountsRpcCalls
boolean
Loading...
dynamicSlippage
boolean
Loading...
blockhashSlotsToExpiry
integer
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

tokenLedgerInstruction
object
Loading...
programId
string
Loading...
accounts
array
Loading...
pubkey
string
Loading...
isSigner
boolean
Loading...
isWritable
boolean
Loading...
data
string
Loading...
computeBudgetInstructions
array
Loading...
programId
string
Loading...
accounts
array
Loading...
pubkey
string
Loading...
isSigner
boolean
Loading...
isWritable
boolean
Loading...
data
string
Loading...
setupInstructions
array
Loading...
programId
string
Loading...
accounts
array
Loading...
pubkey
string
Loading...
isSigner
boolean
Loading...
isWritable
boolean
Loading...
data
string
Loading...
swapInstruction
object
Loading...
programId
string
Loading...
accounts
array
Loading...
pubkey
string
Loading...
isSigner
boolean
Loading...
isWritable
boolean
Loading...
data
string
Loading...
cleanupInstruction
object
Loading...
programId
string
Loading...
accounts
array
Loading...
pubkey
string
Loading...
isSigner
boolean
Loading...
isWritable
boolean
Loading...
data
string
Loading...
otherInstructions
array
Loading...
addressLookupTableAddresses
string
Loading...
prioritizationFeeLamports
integer
Loading...
Request
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free