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

Working swap example? #53

Open
RyanWilkins opened this issue Apr 15, 2024 · 0 comments
Open

Working swap example? #53

RyanWilkins opened this issue Apr 15, 2024 · 0 comments

Comments

@RyanWilkins
Copy link

I can't get the Typescript swap example provided to work on devnet nor mainnet.

As given, using a devnet account with 1 SOL airdropped into it, I get the following error, presumably because the example pool has some token in it that my randomly generated account doesn't have.
image

Alternatively, trying on mainnet using the pool "3msVd34R5KxonDzyNSV5nT19UtUeJ2RF1NaQhvVPNLxL" I get various errors related to opening the AssociatedTokenAccounts. I tried manually opening the Wrapped SOL & USDC accounts but I still get an error related to the NATIVE_TOKEN pre-swap instruction. Removing the pre-swap instruction doesn't work either.

image

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

1 participant