hope all doing good in your life,

How can I perform a transaction using a Solana router(like orca, Raydium) to swap Solana's native token with another token? I've come across various crates such as solana-sdk, solana-client, and solana-program,anchor-lang but I'm struggling to find a clear guide. Can you provide assistance or guidance on how to achieve this please?

1 Answer 1


You can check out the Raydium official documentation or the Jupiter docs for this.

  1. Raydium-Rust-Api
  2. Raydium-SDK
  3. Jupiter

You can also surf through other people's questions regarding this:

  1. How to sign a Solana Raydium swap?
  2. How would I write a transaction that would let me swap on raydium?

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.