raydium-sdk icon indicating copy to clipboard operation
raydium-sdk copied to clipboard

How to modify SDK for devnet?

Open 0xMarsRover opened this issue 11 months ago • 10 comments

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.

0xMarsRover avatar Mar 06 '24 12:03 0xMarsRover

export const PROGRAMIDS = DEVNET_PROGRAM_ID

greatpie avatar Mar 20 '24 22:03 greatpie

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 avatar Apr 01 '24 11:04 anisurrahman072

@anisurrahman072 You set the PROGRAMIDS here https://github.com/raydium-io/raydium-sdk-V1-demo/blob/3aa9b99598f7a6881b4d67e2c3d0c3a2d2310410/config.ts#L24

jakerumbles avatar Apr 02 '24 22:04 jakerumbles

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?

Lythiuum avatar Apr 25 '24 15:04 Lythiuum

Hi, @jakerumbles So how can use raydium sdk for solana devnet? Give me more explain.

winer328 avatar May 06 '24 02:05 winer328

@winer328 Here's something to help maybe

https://gist.github.com/jakerumbles/42ae6b1d8ac3ada482a9914d86ad2574

jakerumbles avatar May 13 '24 05:05 jakerumbles

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: @.***>

winer328 avatar May 13 '24 05:05 winer328

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: @.***>

winer328 avatar May 13 '24 05:05 winer328

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.

jakerumbles avatar May 13 '24 20:05 jakerumbles

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 avatar May 13 '24 23:05 winer328

@winer328 can you let me know if you were able to find the solution to run the raydium-frontend with solana-devnet?

gsofter avatar May 26 '24 13:05 gsofter

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: @.***>

winer328 avatar May 26 '24 15:05 winer328

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: @.***>

winer328 avatar May 26 '24 15:05 winer328