Class BorshInstructionCoder

Encodes and decodes program instructions.

Implements

  • InstructionCoder

Constructors

Methods

Constructors

  • Parameters

    Returns BorshInstructionCoder

Methods

  • Decodes a program instruction.

    Parameters

    • ix: string | Buffer
    • Optionalencoding: "hex" | "base58"

    Returns null | Instruction

  • Encodes a program instruction.

    Parameters

    • ixName: string
    • ix: any

    Returns Buffer

  • Returns a formatted table of all the fields in the given instruction data.

    Parameters

    Returns null | InstructionDisplay