Class Loader

Program loader interface

Hierarchy

  • Loader

Properties

Methods

Properties

chunkSize: number = CHUNK_SIZE

Amount of program data placed in each load Transaction

Methods

  • 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

    Returns

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

    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>

Generated using TypeDoc