0

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??

7
  • 3
    Does this answer your question? Swap transaction with raydium
    – McBain
    Commented Jan 10 at 1:36
  • you can use hellomoon.io to find pairs associated with SOL
    – shackra
    Commented 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? Commented 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…
    – shackra
    Commented 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)
    – shackra
    Commented Jan 10 at 20:02

2 Answers 2

0

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

0

you can use getMultipleAccounts for pair and marketid to get them all then decode

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.