Aller directement au contenu principal

/quote REST API Endpoint - Swap API

Chargement en cours...

Mis à jour le
Aug 09, 2026

/quote 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)

Paramètres de requête

inputMint
chaîne de caractères
OBLIGATOIRE
Chargement en cours...
outputMint
chaîne de caractères
OBLIGATOIRE
Chargement en cours...
montant
entier
OBLIGATOIRE
Chargement en cours...
slippageBps
entier
Chargement en cours...
swapMode
chaîne de caractères
Chargement en cours...
dexes
tableau
Chargement en cours...
excludeDexes
tableau
Chargement en cours...
restrictIntermediateTokens
booléen
Chargement en cours...
onlyDirectRoutes
booléen
Chargement en cours...
asLegacyTransaction
booléen
Chargement en cours...
platformFeeBps
entier
Chargement en cours...
maxAccounts
entier
Chargement en cours...
instructionVersion
chaîne de caractères
Chargement en cours...
dynamicSlippage
booléen
Chargement en cours...

Retours

inputMint
chaîne de caractères
Chargement en cours...
inAmount
chaîne de caractères
Chargement en cours...
outputMint
chaîne de caractères
Chargement en cours...
outAmount
chaîne de caractères
Chargement en cours...
otherAmountThreshold
chaîne de caractères
Chargement en cours...
swapMode
chaîne de caractères
Chargement en cours...
slippageBps
entier
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
Chargement en cours...
routePlan
tableau
Chargement en cours...
swapInfo
objet
Chargement en cours...
ammKey
chaîne de caractères
Chargement en cours...
label
chaîne de caractères
Chargement en cours...
inputMint
chaîne de caractères
Chargement en cours...
outputMint
chaîne de caractères
Chargement en cours...
inAmount
chaîne de caractères
Chargement en cours...
outAmount
chaîne de caractères
Chargement en cours...
feeAmount
chaîne de caractères
Chargement en cours...
feeMint
chaîne de caractères
Chargement en cours...
percent
entier
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...
Demande
Réponse
1
{
2
"inputMint": "So11111111111111111111111111111111111111112",
3
"inAmount": "1000000000",
4
"outputMint": "EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm",
5
"outAmount": "277873995",
6
"otherAmountThreshold": "276484626",
7
"swapMode": "ExactIn",
8
"slippageBps": 50,
9
"platformFee": null,
10
"priceImpactPct": "0",
11
"routePlan": [
12
{
13
"swapInfo": {
14
"ammKey": "Gkt4BpMRFxhhrrVMQsewM74ggriAbxyN2yUYDD9qt1NV",
15
"label": "Lifinity V2",
16
"inputMint": "So11111111111111111111111111111111111111112",
17
"outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
18
"inAmount": "1000000000",
19
"outAmount": "151723380",
20
"feeAmount": "50000",
21
"feeMint": "So11111111111111111111111111111111111111112"
22
},
23
"percent": 100
24
},
25
{
26
"swapInfo": {
27
"ammKey": "BuMSijp24Vg28YVi3Y8WRjpRuBdMUTYuYn1BxgoRe3yR",
28
"label": "ZeroFi",
29
"inputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
30
"outputMint": "EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm",
31
"inAmount": "151723380",
32
"outAmount": "277873995",
33
"feeAmount": "0",
34
"feeMint": "11111111111111111111111111111111"
35
},
36
"percent": 100
37
}
38
],
39
"scoreReport": null,
40
"contextSlot": 335660308,
41
"timeTaken": 0.003340617,
42
"swapUsdValue": "151.61720367660802477109744292",
43
"simplerRouteUsed": false,
44
"mostReliableAmmsQuoteReport": {
45
"info": {}
46
}
47
}
1
{
2
"inputMint": "So11111111111111111111111111111111111111112",
3
"inAmount": "1000000000",
4
"outputMint": "EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm",
5
"outAmount": "277873995",
6
"otherAmountThreshold": "276484626",
7
"swapMode": "ExactIn",
8
"slippageBps": 50,
9
"platformFee": null,
10
"priceImpactPct": "0",
11
"routePlan": [
12
{
13
"swapInfo": {
14
"ammKey": "Gkt4BpMRFxhhrrVMQsewM74ggriAbxyN2yUYDD9qt1NV",
15
"label": "Lifinity V2",
16
"inputMint": "So11111111111111111111111111111111111111112",
17
"outputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
18
"inAmount": "1000000000",
19
"outAmount": "151723380",
20
"feeAmount": "50000",
21
"feeMint": "So11111111111111111111111111111111111111112"
22
},
23
"percent": 100
24
},
25
{
26
"swapInfo": {
27
"ammKey": "BuMSijp24Vg28YVi3Y8WRjpRuBdMUTYuYn1BxgoRe3yR",
28
"label": "ZeroFi",
29
"inputMint": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
30
"outputMint": "EKpQGSJtjMFqKZ9KQanSqYXRcF8fBopzLHYxdM65zcjm",
31
"inAmount": "151723380",
32
"outAmount": "277873995",
33
"feeAmount": "0",
34
"feeMint": "11111111111111111111111111111111"
35
},
36
"percent": 100
37
}
38
],
39
"scoreReport": null,
40
"contextSlot": 335660308,
41
"timeTaken": 0.003340617,
42
"swapUsdValue": "151.61720367660802477109744292",
43
"simplerRouteUsed": false,
44
"mostReliableAmmsQuoteReport": {
45
"info": {}
46
}
47
}
Vous n'avez pas encore de compte ?
Créez votreendpoint Quicknode endpoint quelques secondes et commencez à développer
Commencez gratuitement