Function buildOptimalDynamicTransactionsNoSigning

  • Builds compute-optimized BuildTransactionsType from a set of instructions, fee payer, connection, lookup tables, and optional before/after instructions. This should only be run with instructions that can be executed in parallel. If the instructions are dependent on each other, subsequent simulations will fail and the compute limit numbers will be incorrect.s

    Parameters

    • connection: Connection

      The connection to use for getting the rbh and passed in to the priority config functions

    • instructions: InstructionReturn | InstructionReturn[]

      The main instructions to include in the transactions.

    • feePayer: AsyncSigner<unknown>

      The fee payer for the transactions.

    • priorityConfig: PriorityConfig

      Configuration for if and how the Compute budget instructions will be added to the transactions.

    • lookupTables: AddressLookupTableAccount[] = []

      Optional list of lookup tables to try to build transactions with.

    • Optional beforeIxs: InstructionReturn[]

      Optional instructions to include at the beginning of each transaction.

    • Optional afterIxs: InstructionReturn[]

      Optional instructions to include at the end of each transaction.

    • maxInstructionCount: number = 64

      The maximum number of instructions to include in each transaction.

    Returns Promise<BuildTransactionsType[]>

    A promise that resolves to the BuildTransactionsType, which can be converted to transaction returns using buildAndSignTransactionsFromIxWithSigners.

Generated using TypeDoc