InstructionDecoder
Defined in: types.ts:41
Decodes the instructions of one program. Register your own with DecoderRegistry.register. decode
returns null for data it does not recognise (the instruction is then shown undecoded, raw accounts and data
included) and may throw for malformed data (shown undecoded with the error). It must not touch the network.
Properties
Section titled “Properties”programAddress
Section titled “programAddress”
readonlyprogramAddress:string
Defined in: types.ts:42
programName
Section titled “programName”
readonlyprogramName:string
Defined in: types.ts:44
Human name of the program (Token-2022 Program, Jupiter Aggregator v6).
Methods
Section titled “Methods”decode()
Section titled “decode()”decode(
instruction):DecodedFields|null
Defined in: types.ts:45
Parameters
Section titled “Parameters”instruction
Section titled “instruction”Returns
Section titled “Returns”DecodedFields | null