Ir diretamente para o conteúdo principal

/swap-instructions REST API Endpoint - Metis

A carregar...

Atualizado em
Dec 18, 2025

/swap-instructions 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.

Parâmetros de consulta

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

tokenLedgerInstruction
objeto
A carregar...
programId
cadeia de caracteres
A carregar...
accounts
matriz
A carregar...
pubkey
cadeia de caracteres
A carregar...
isSigner
booleano
A carregar...
isWritable
booleano
A carregar...
dados
cadeia de caracteres
A carregar...
computeBudgetInstructions
matriz
A carregar...
programId
cadeia de caracteres
A carregar...
accounts
matriz
A carregar...
pubkey
cadeia de caracteres
A carregar...
isSigner
booleano
A carregar...
isWritable
booleano
A carregar...
dados
cadeia de caracteres
A carregar...
setupInstructions
matriz
A carregar...
programId
cadeia de caracteres
A carregar...
accounts
matriz
A carregar...
pubkey
cadeia de caracteres
A carregar...
isSigner
booleano
A carregar...
isWritable
booleano
A carregar...
dados
cadeia de caracteres
A carregar...
swapInstruction
objeto
A carregar...
programId
cadeia de caracteres
A carregar...
accounts
matriz
A carregar...
pubkey
cadeia de caracteres
A carregar...
isSigner
booleano
A carregar...
isWritable
booleano
A carregar...
dados
cadeia de caracteres
A carregar...
cleanupInstruction
objeto
A carregar...
programId
cadeia de caracteres
A carregar...
accounts
matriz
A carregar...
pubkey
cadeia de caracteres
A carregar...
isSigner
booleano
A carregar...
isWritable
booleano
A carregar...
dados
cadeia de caracteres
A carregar...
otherInstructions
matriz
A carregar...
addressLookupTableAddresses
matriz
A carregar...
prioritizationFeeLamports
número inteiro
A carregar...
Pedido
Ainda não tem uma conta?
Crie o seu ponto de extremidade Quicknode em segundos e comece a desenvolver
Comece gratuitamente