Program loader interface


chunkSize: number = CHUNK_SIZE

Amount of program data placed in each load Transaction


  • Minimum number of signatures required to load a program not including retries

    Can be used to calculate transaction fees


    • dataLength: number

    Returns number

  • Loads a generic program


    • 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: Uint8Array | Buffer | number[]

      Program octets

    Returns Promise<boolean>

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

Generated using TypeDoc