You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jupiterClient from SDK internally uses 2 endpoints: /quote to retrieve swap route and /swap to retrieve transaction data.
Recently jupiter have updated their API and now this functionality is provided by different endpoints: /quote and /transaction.
While SDK allows to specify custom URL for jupiter swap api, at the moment it is impossible to use actual endpoint "https://api.jup.ag/swap/v6"
I would suggest to implement new optional configuration object JupiterURLs with 'quote' and 'transaction' fields. If this fields exists - then use them for requests.
This is much more elegant solution, comparent to current code with hardcoded default routes and api version:
jupiterClient from SDK internally uses 2 endpoints: /quote to retrieve swap route and /swap to retrieve transaction data.
Recently jupiter have updated their API and now this functionality is provided by different endpoints: /quote and /transaction.
While SDK allows to specify custom URL for jupiter swap api, at the moment it is impossible to use actual endpoint "https://api.jup.ag/swap/v6"
I would suggest to implement new optional configuration object JupiterURLs with 'quote' and 'transaction' fields. If this fields exists - then use them for requests.
This is much more elegant solution, comparent to current code with hardcoded default routes and api version:
This change would allow users to use current version of JUP API now and in the future.
The text was updated successfully, but these errors were encountered: