Options
All
  • Public
  • Public/Protected
  • All
Menu

Program loader interface

Hierarchy

  • Loader

Index

Constructors

Properties

Methods

Constructors

Properties

chunkSize: number

Amount of program data placed in each load Transaction

Methods

  • getMinNumSignatures(dataLength: number): number
  • Minimum number of signatures required to load a program not including retries

    Can be used to calculate transaction fees

    Parameters

    • dataLength: number

    Returns number

  • Loads a generic program

    Parameters

    • connection: Connection

      The connection to use

    • payer: Signer

      System account that pays to load the program

    • program: Signer

      Account to load the program into

    • programId: PublicKey

      Public key that identifies the loader

    • data: number[] | Uint8Array | Buffer

      Program octets

    Returns Promise<boolean>

    true if program was loaded successfully, false if program was already loaded

Generated using TypeDoc