raydium-sdk
raydium-sdk copied to clipboard
How to modify SDK for devnet?
I plan to test some functions (create market, add LP and swap) on raydium for solanave devnet. I forked the raydium frontend, but I found that I could need to change some configurations on SDK, such as program IDs.
Any ideas or tutorials to achieve it? Thanks.
export const PROGRAMIDS = DEVNET_PROGRAM_ID
export const PROGRAMIDS = DEVNET_PROGRAM_ID
Hi @greatpie. Thanks for this. But really didn't understand where I need to set this export const PROGRAMIDS = DEVNET_PROGRAM_ID ?
Could you please let us know about it in more details ?
I'm using ChainStack RPC to do SWAP from my Node.js server.
Here is the ChainStack code to SWAP from Node.js ---> https://github.com/chainstacklabs/raydium-sdk-swap-example-typescript/blob/main/README.md
@anisurrahman072 You set the PROGRAMIDS
here https://github.com/raydium-io/raydium-sdk-V1-demo/blob/3aa9b99598f7a6881b4d67e2c3d0c3a2d2310410/config.ts#L24
Followed the same process shown here and added my custom token and ran the createMarket script which returned Done but nothing else and in fact the explorer didnt show anything on the transactions (but no errors were shown on the terminal) , any ideas?
Hi, @jakerumbles So how can use raydium sdk for solana devnet? Give me more explain.
@winer328 Here's something to help maybe
https://gist.github.com/jakerumbles/42ae6b1d8ac3ada482a9914d86ad2574
Thanks for reply to me. Excuse me, could you explain more detaily?
On Sun, May 12, 2024 at 10:04 PM Jake Edwards @.***> wrote:
@winer328 https://github.com/winer328 Here's something to help maybe
https://gist.github.com/jakerumbles/42ae6b1d8ac3ada482a9914d86ad2574
— Reply to this email directly, view it on GitHub https://github.com/raydium-io/raydium-sdk/issues/62#issuecomment-2106661731, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHNCKMHLN7PRCOVND5WPDZDZCBCUZAVCNFSM6AAAAABEI5KQMOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBWGY3DCNZTGE . You are receiving this because you were mentioned.Message ID: @.***>
So you mean, it is possible to swap in devnet with Raydium api?
On Sun, May 12, 2024 at 10:10 PM Rex Dev @.***> wrote:
Thanks for reply to me. Excuse me, could you explain more detaily?
On Sun, May 12, 2024 at 10:04 PM Jake Edwards @.***> wrote:
@winer328 https://github.com/winer328 Here's something to help maybe
https://gist.github.com/jakerumbles/42ae6b1d8ac3ada482a9914d86ad2574
— Reply to this email directly, view it on GitHub https://github.com/raydium-io/raydium-sdk/issues/62#issuecomment-2106661731, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHNCKMHLN7PRCOVND5WPDZDZCBCUZAVCNFSM6AAAAABEI5KQMOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBWGY3DCNZTGE . You are receiving this because you were mentioned.Message ID: @.***>
I can't remember 100%. I got some stuff to work but other things I got stuck on. The sad truth is that raydium devnet is in a poor state, but can't say I'm surprised given how laggy their frontend is. Not sure what's going on with them.
I agree with you. Thanks for your help.
On Mon, May 13, 2024 at 1:49 PM Jake Edwards @.***> wrote:
I can't remember 100%. I got some stuff to work but other things I got stuck on. The sad truth is that raydium devnet is in a poor state, but can't say I'm surprised given how laggy their frontend is. Not sure what's going on with them.
— Reply to this email directly, view it on GitHub https://github.com/raydium-io/raydium-sdk/issues/62#issuecomment-2108774584, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHNCKMAFBYKYVDTQ7ZSAC53ZCERMJAVCNFSM6AAAAABEI5KQMOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMBYG43TINJYGQ . You are receiving this because you were mentioned.Message ID: @.***>
@winer328 can you let me know if you were able to find the solution to run the raydium-frontend with solana-devnet?
Yes, I did.
On Sun, May 26, 2024 at 3:52 PM gSofter @.***> wrote:
@winer328 https://github.com/winer328 can you let me know if you were able to find the solution to run the raydium-frontend with solana-devnet?
— Reply to this email directly, view it on GitHub https://github.com/raydium-io/raydium-sdk/issues/62#issuecomment-2132231608, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHNCKMBAMRUKHBW3LQZ6YOLZEHSJLAVCNFSM6AAAAABEI5KQMOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZSGIZTCNRQHA . You are receiving this because you were mentioned.Message ID: @.***>
My telegram acc: rex_champion
On Sun, May 26, 2024 at 5:34 PM Rex Dev @.***> wrote:
Yes, I did.
On Sun, May 26, 2024 at 3:52 PM gSofter @.***> wrote:
@winer328 https://github.com/winer328 can you let me know if you were able to find the solution to run the raydium-frontend with solana-devnet?
— Reply to this email directly, view it on GitHub https://github.com/raydium-io/raydium-sdk/issues/62#issuecomment-2132231608, or unsubscribe https://github.com/notifications/unsubscribe-auth/BHNCKMBAMRUKHBW3LQZ6YOLZEHSJLAVCNFSM6AAAAABEI5KQMOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZSGIZTCNRQHA . You are receiving this because you were mentioned.Message ID: @.***>