gagliardetto / solana-go

Go SDK library and RPC client for the Solana Blockchain
Apache License 2.0
929 stars 264 forks source link

Method to get the marketAuthority(PDA) from the Market Initialization #247

Closed andmart closed 1 week ago

andmart commented 1 month ago

While grabbing token information to buy/sell in Raydium, I missed this method that allow to calculate pda for the marketAuthority. I didn't find anything related, so I decided to implement myself.

Btw, nice work and I hope this PR can help.

The Reference: https://github.com/raydium-io/raydium-sdk/blob/f4b7f47e744c12a8b0119b85e16d0d8274aa5ba9/src/serum/serum.ts#L41

gagliardetto commented 1 week ago

Thank you!