Yihau Chen

Results 51 comments of Yihau Chen

The go-mutierror use the errors.As and errors.Is I think your go version should be bigger than 1.13

sure. It depends which program you are interacting with. The main idea is to compose transaction if you want to call smart contract (in solana we called it `program`). FYI...

Oh. I think I should add some examples for interacting with custom program!

Hi there, I will support [SPL program](https://spl.solana.com/) first. I think it is also good to support the other contracts. I will consider with it.

I added a new function, you may take a look at https://github.com/portto/solana-go-sdk/blob/main/docs/_examples/client/get-token-accounts-by-owner/main.go

you can take a look at https://github.com/portto/solana-go-sdk/blob/main/docs/_examples/client/get-token-account/main.go the mint is included in the token account data.

interesting. could you provide some reference to me? like api spec ...

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

Ok. I will add some examples for it in next few days.