Skip to content
docs

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.

readonly programAddress: string

Defined in: types.ts:42


readonly programName: string

Defined in: types.ts:44

Human name of the program (Token-2022 Program, Jupiter Aggregator v6).

decode(instruction): DecodedFields | null

Defined in: types.ts:45

RawInstruction

DecodedFields | null