Type alias ProgramAccountParser<T>

ProgramAccountParser<T>: { name: string; parse: ((data: Buffer) => T); programID: PublicKey }

A parser for program-owned accounts.

Type Parameters

  • T

Type declaration

  • name: string

    Name of the account.

  • parse: ((data: Buffer) => T)
      • (data: Buffer): T
      • Function which parses the account.

        Parameters

        • data: Buffer

        Returns T

  • programID: PublicKey

    ID of the program.

Generated using TypeDoc