order
GEThttps://lite-api.jup.ag/ultra/v1/order
Request for a base64-encoded unsigned swap transaction to be used in POST /ultra/v1/execute
note
- Refer to Ultra API doc for more information
Request
Query Parameters
inputMint stringrequired
outputMint stringrequired
amount stringrequired
taker string
The account address of the user
Responses
- 200
- 400
- 500
Successful response
- application/json
- Schema
- Example (auto)
Schema
inputMintstringrequired
outputMintstringrequired
inAmountstringrequired
outAmountstringrequired
otherAmountThresholdstringrequired
swapModestringrequired
slippageBpsnumberrequired
priceImpactPctstringrequired
routePlan object[]required
contextSlotnumber
feeBpsnumberrequired
prioritizationTypestringrequired
Possible values: [None
, ComputeBudget
, Jito
]
prioritizationFeeLamportsnumberrequired
swapTypestringrequired
Possible values: [aggregator
, rfq
]
transactionstring | nullnullablerequired
Unsigned base-64 encoded transaction to be signed and used in /execute
gaslessbooleanrequired
requestIdstringrequired
Required to make a request to /execute
totalTimenumberrequired
takerstring | nullnullablerequired
quoteIdstring
makerstring
expireAtstring
lastValidBlockHeightnumber
platformFee object
dynamicSlippageReport object
{
"inputMint": "string",
"outputMint": "string",
"inAmount": "string",
"outAmount": "string",
"otherAmountThreshold": "string",
"swapMode": "string",
"slippageBps": 0,
"priceImpactPct": "string",
"routePlan": [
{
"swapInfo": {
"ammKey": "string",
"label": "string",
"inputMint": "string",
"outputMint": "string",
"inAmount": "string",
"outAmount": "string",
"feeAmount": "string",
"feeMint": "string"
},
"percent": 0
}
],
"contextSlot": 0,
"feeBps": 0,
"prioritizationType": "None",
"prioritizationFeeLamports": 0,
"swapType": "aggregator",
"gasless": true,
"requestId": "string",
"totalTime": 0,
"quoteId": "string",
"maker": "string",
"expireAt": "string",
"lastValidBlockHeight": 0,
"platformFee": {
"amount": "string",
"feeBps": 0
},
"dynamicSlippageReport": {
"slippageBps": 0,
"categoryName": "string",
"heuristicMaxSlippageBps": 0
}
}
Bad request
- application/json
- Schema
- Example (auto)
Schema
errorstringrequired
{
"error": "string"
}
Internal server error
- application/json
- Schema
- Example (auto)
Schema
errorstringrequired
{
"error": "string"
}
- curl
- nodejs
- python
- rust
- CURL
curl -L 'https://lite-api.jup.ag/ultra/v1/order' \
-H 'Accept: application/json'
ResponseClear