gagliardetto / solana-go

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

How to parse instuction using IDL? #98

Open hjchan opened 2 years ago

hjchan commented 2 years ago

Hello, is there any way to parse the instruction using IDL like https://github.com/debridge-finance/solana-tx-parser-public?

gagliardetto commented 2 years ago

You need to generate a client using https://github.com/gagliardetto/anchor-go (might not work).

And then use that.