raydium-sdk-swap-example-typescript
raydium-sdk-swap-example-typescript copied to clipboard
An example to swap tokens on Solana using the Raydium SDK, TypeScript, and Chainstack
- sol swap usdc, 0.02 WSOL -> 0.38 (It should be 2.x) - slippage 5% - mainnet tx: [FVGsLj53u5sGKpDZYePZPiUV23SqGCQrVDYYM1cj1auSRcBENKAsotdhJgpXugawrZZxRttt5KS1tG3bU3BCuFo](https://solscan.io/tx/FVGsLj53u5sGKpDZYePZPiUV23SqGCQrVDYYM1cj1auSRcBENKAsotdhJgpXugawrZZxRttt5KS1tG3bU3BCuFo) Should I also check the price and get a new pool...
So, basically I am building a trading platform for fun, I implemented Jupiter before, in Jupiter there are parameters to take platform trading fees, which will reserve a small amount...
Hello All, I am not able to understand why I am getting this error while executing swap through Raydium sdk. I have followed all the steps mentioned in the Readme...
hello. I don't know why it gives me this error when I exceute the swap. this error related to the pool and it's like the code can't read the pool...
I am using the Raydium script to swap transactions, and I'm currently testing on the mainnet. but each time I do this, I receive a transaction hash. However, when I...
src/RaydiumSwap.ts:109:7 - error TS2353: Object literal may only specify known properties, and 'makeTxVersion' does not exist in type 'LiquiditySwapInstructionSimpleParams'. 109 makeTxVersion: useVersionedTransaction ? 0 : 1, ~~~~~~~~~~~~~ src/RaydiumSwap.ts:249:52 - error...
raydium-sdk-swap-example-typescript/node_modules/bn.js/lib/bn.js:6 if (!val) throw new Error(msg || 'Assertion failed');
hi guys when i try to run this code on my terminal ->ts-node .\trimMainnet.ts im getting this error message FATAL ERROR: v8::ToLocalChecked Empty MaybeLocal ----- Native stack trace ----- 1:...
Thanks for this great example. Unfortunately it does not work for me I get ``` Program Error: "Instruction #5 Failed - Unknown instruction error" ``` https://solscan.io/tx/5UWeSHKEvu6gFou4pPjnKhEenf4oMAZUkCfrEJUwDEveXaqVsi9A1iiVZxir1M5xZEaqKsxA96jXAba69fcyHZrA
Hi, I am new to the DEX. I checked the code which is working with the tokens which are available in mainnet.json. But some times we need to swap the...