blocto / solana-go-sdk

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

fix option account of verify collection #168

Closed Trisato closed 6 months ago

Trisato commented 6 months ago

Fix the option account of verify collection. Sorry for the oversight.

Trisato commented 6 months ago

By the way, I just asked a question about how to get master edition data in the discord, would u pls help check that. Thank u so much!!! @yihau

yihau commented 6 months ago

thank you for your contributions! tbh, I'm not sure which channel you mean. if you wanna get a master edition in this SDK, you will need to

  1. get the address https://github.com/blocto/solana-go-sdk/blob/b0b5702b79a9de926756708b7688c2aaabf4792c/program/metaplex/token_metadata/utils.go#L24-L39
  2. get account data from the address
  3. for parsing, I haven't integrated this one. you will need to decode the data by yourself. you can check https://github.com/metaplex-foundation/mpl-token-metadata/blob/main/idls/token_metadata.json#L4858-L4880. it won't be too hard to do. hope I can finish the anchor feature asap 😞
Trisato commented 6 months ago

Actually, I just sent you private msg in discord. But u already reply me here, I will try to implement it and will raise pr if i can work out. Thanks You!!!