Order Response
- Success
- Failed
Execute Response
- Success
- Failed
Use the
signature
field to view the transaction in an explorer.Ultra Endpoint Codes
Code | Description | Debugging |
---|---|---|
0 | Success | - |
-1 | Missing cached order | requestId not found in cache, likely expired or not found |
-2 | Invalid signed transaction | signedTransaction is invalid, likely failed to sign the transaction correctly |
-3 | Invalid message bytes | signedTransaction is invalid, likely due to incorrect usage like modification of transaction field in the order response |
-4 | Missing request id | requestId is not found in the request to /execute |
-5 | Missing signed transaction | signedTransaction is not found in the request to /execute |
Aggregator Swap Type Codes
Code | Description | Debugging |
---|---|---|
-1000 | Failed to land | Transaction failed to land on the network |
-1001 | Unknown error | Please try again, if it persists please reach out in Discord |
-1002 | Invalid transaction | Please try again, if it persists please reach out in Discord |
-1003 | Transaction not fully signed | Failed to sign the transaction correctly |
-1004 | Invalid block height | The block height is invalid |
-1005 | Expired | The submitted transaction has been attempted but has expired |
-1006 | Timed out | The submitted transaction has been attempted but has timed out |
-1007 | Gasless unsupported wallet | The wallet is not supported for gasless |
RFQ Swap Type Codes
Code | Description | Debugging |
---|---|---|
-2000 | Failed to land | Please try again, if it persists please reach out in Discord |
-2001 | Unknown error | Please try again, if it persists please reach out in Discord |
-2002 | Invalid payload | Please try again, if it persists please reach out in Discord |
-2003 | Quote expired | User did not respond in time or RFQ provider did not execute in time |
-2004 | Swap rejected | User or RFQ provider rejected the swap |
-2005 | Internal error | Please try again, if it persists please reach out in Discord |
Program Related Codes
For Jupiter V6 Aggregator Program Codes, the error message will be parsed with description.IDL
For the full and most up to date list of Jupiter V6 Aggregator Program Codes, you can refer to the IDL on an explorer.
If you need help identifying the other DEX program codes, please reach out in Discord.
Best Practices
It is important to understand the error codes to provide a better experience for your users, helping them make an informed decision or follow up step to help their transaction succeed.See https://jup.ag/ as a reference to understand how we handle errors on the UI.
Example Error | Best Practice |
---|---|
Slippage exceeding threshold | Show the user the current slippage tolerance and the incurred slippage |
Insufficient funds | Disable swap widget but still provide quote visibility |
Non Jupiter Program Errors | Allow the user to retry with a new route by requoting and/or exclude the specific DEX from the quote request |