@solana/web3.js
    Preparing search index...

    Class Loader

    Program loader interface

    Index
    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

      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<ArrayBufferLike> | Buffer<ArrayBufferLike>

        Program octets

      Returns Promise<boolean>

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