blocto / solana-go-sdk

Solana Golang SDK
https://blocto.github.io/solana-go-sdk/
MIT License
385 stars 101 forks source link

Help With Serum #44

Open h4ckitt opened 2 years ago

h4ckitt commented 2 years ago

Hi, I Really Love This Library And I've Gone Through The Gitbook.

This Is Not An Issue With The Library, Rather A Call For Help To Get The Right Direction.

I Need To Communicate With The Serum Dex And Using A Private Key, Serum Market ID, Size, Operation (Buy/Sell) And Order Type Constant (IOC) To Execute An Order And Output The Transaction Hash In 1 RPC Command.

Please, Can I Use Your Library To Achieve This? I Would Be Grateful If I Can Be Pointed In The Right Direction.

Thanks In Anticipation.

yihau commented 2 years ago

Sure. For now you will need to build the instruction by yourself. I haven't wrapped serum instructions yet. https://github.com/project-serum/serum-dex/blob/master/dex/src/instruction.rs