Constructors

Methods

Constructors

Methods

  • Function to convert transaction instructions to a versioned transaction.

    Parameters

    • params: {
          computeUnitLimitMultiple?: number;
          computeUnitPrice?: number;
          connection: Connection;
          ixs: TransactionInstruction[];
          lookupTables?: AddressLookupTableAccount[];
          payer?: PublicKey;
          signers?: Signer[];
      }

      The parameters object.

      • Optional computeUnitLimitMultiple?: number

        The compute units to cap the transaction as a multiple of the simulated units consumed (e.g., 1.25x).

      • Optional computeUnitPrice?: number

        The price per compute unit in microlamports.

      • connection: Connection

        The connection to use.

      • ixs: TransactionInstruction[]

        The transaction instructions.

      • Optional lookupTables?: AddressLookupTableAccount[]

        The address lookup tables.

      • Optional payer?: PublicKey

        The payer for the transaction.

      • Optional signers?: Signer[]

        The signers for the transaction.

    Returns Promise<VersionedTransaction>

    A promise that resolves to the versioned transaction.

Generated using TypeDoc