Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

apiSwap Demo returns REQ_SWAP_RESPONSE_ERROR #103

Closed
klauskobald opened this issue Nov 20, 2024 · 1 comment
Closed

apiSwap Demo returns REQ_SWAP_RESPONSE_ERROR #103

klauskobald opened this issue Nov 20, 2024 · 1 comment

Comments

@klauskobald
Copy link

I tried different token pairs. A more descriptive error would be nice!

@cruzshia
Copy link
Collaborator

please follow demo code https://github.com/raydium-io/raydium-sdk-V2-demo/blob/master/src/api/swap.ts
to do api swap and 'do not' hard code params like swapResponses, you also can compare api request in raydium.io to check whether there's any wrong params send to api.
if you send api request like raydium.io does but still receive errors, please open a support tick in discord, thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants