1

https://solscan.io/tx/5oWH7ReHYBy3YNExFMcHCBP7a2yLdF9EXGqYSC9nPEJRsriVMFG4KKF2BGh3yD6A4MGMZ84LTyYQC5TMG7txyycn For example, here's a transaction that is swapping on raydium, how do I write one of my own ?

1 Answer 1

3

You can use use raydium SDK - https://github.com/raydium-io/raydium-sdk/blob/master/src/ammV3/ammV3.ts#L758

If you look for a optimized trading route, you can also use Jupiter SDK - https://station.jup.ag/docs/apis/swap-sdk

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.