Does anyone know if there is any way to do a SWAP between SOL and a specific token on Raydium without having to make a time-consuming request to the endpoint https://api.raydium.io/v2/sdk/liquidity/mainnet.json??
-
3Does this answer your question? Swap transaction with raydium– McBainCommented Jan 10 at 1:36
-
you can use hellomoon.io to find pairs associated with SOL– shackraCommented Jan 10 at 8:19
-
1@shackra Is there any specific method for this RPC that you recommend? I need to get into tokens that were launched just a few seconds ago. Do you recommend any method for this RPC to obtain the pool keys? Or what do you advise?– Eric viniciusCommented Jan 10 at 9:12
-
@Ericvinicius I'm working on the same kind of project. I just wrote the part that interacts with Jupiter Station in Node.JS using Typescript. Regarding your exact question…– shackraCommented Jan 10 at 19:59
-
If you want to see what are the new token pairs on Raydium, you can create a websocket subscription in hellomoon.io with the event stream LP creation (see docs)– shackraCommented Jan 10 at 20:02
|
Show 2 more comments
2 Answers
You can manually build up instruction and then proceed to add them to your transaction. This gist achieves this perfectly. I'm working on a python version