solana-go-sdk
solana-go-sdk copied to clipboard
how to decode the instruction.data?
type TokenInstructParam struct { Instruction token.Instruction Amount uint64 Decimals uint8 }
type TransferInstructParam struct { Instruction system.Instruction Lamports uint64 }
I knew it.
type TokenInstructParam struct { Instruction token.Instruction Amount uint64 Decimals uint8 }
type TransferInstructParam struct { Instruction system.Instruction Lamports uint64 }
the system.Instruction not equals the token.Instruction