All Questions
Tagged with swap javascript
5 questions
1
vote
0
answers
45
views
"input token account not found" when trying to sell/swap tokens to SOL
Heyhey!
I'm currently writing a tool that lets me buy/sell/swap Tokens on the Solana blockchain.
Buying (swapping SOL for any Token) "seems" to work, I get the Tokens into my wallet and the ...
0
votes
1
answer
1k
views
Pump dot fun Official program ids
Hello I am trying to code a pump.fun bot which buys and sells tokens via js.
I am having trouble coming up with the official program ids. Can someone please help me provide the official program ids ...
0
votes
0
answers
136
views
how to do Swap Sol to different coins via TypeScript?
I'm currently working on a project where I need to swap Solana (SOL) for other cryptocurrencies programmatically using TypeScript. I understand the basics of working with blockchain technologies and ...
5
votes
1
answer
637
views
Why can slippage only be set to whole numbers using Raydium Swap SDK?
I am currently using the Raydium SDK to perform token swaps. I use the Percent class from the sdk to create the slippage value which I then use in my transaction, but it seems that this Percent class ...
0
votes
2
answers
604
views
Solana Token Swap Program - Program log: panicked at 'index out of bounds: the len is 0 but the index is 0', token-swap/program/src/state.rs:61:17
I am facing an issue when I try to create a token swap through the js binding for the token swap program.
https://github.com/solana-labs/solana-program-library/tree/master/token-swap
I don't get the ...