raydium-io / raydium-sdk-V2-demo

Open-source Typescript SDK demos
50 stars 31 forks source link

I don't want to use sendAndConfirmTransaction for swapping #50

Closed miaoluyao closed 3 months ago

miaoluyao commented 3 months ago

I don't want to use sendAndConfirmTransaction for swapping. Can I use sendTransaction to send the transaction instead, so that it just broadcasts the transaction and does not wait for it to confirm on the network?

cruzshia commented 3 months ago

swap function returns transaction, you can use it to do whatever you want to send tx and don't have to call execute, and of course, you have to sign it by yourself

cruzshia commented 3 months ago

just updated sdk in demo repo and it uses sendTransaction instead of sendAndConfirmTransaction.

miaoluyao commented 3 months ago

Thank you!