solana-go-sdk icon indicating copy to clipboard operation
solana-go-sdk copied to clipboard

how to decode the instruction.data?

Open yangyile1990 opened this issue 1 year ago • 1 comments

type TokenInstructParam struct { Instruction token.Instruction Amount uint64 Decimals uint8 }

type TransferInstructParam struct { Instruction system.Instruction Lamports uint64 }

yangyile1990 avatar Aug 15 '23 02:08 yangyile1990

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

yangyile1990 avatar Aug 16 '23 02:08 yangyile1990