Function buildDynamicTransactions

  • Builds dynamic transactions from a set of instructions, fee payer, connection, and optional before/after instructions.

    Parameters

    • instructions: InstructionReturn | InstructionReturn[]

      The main instructions to include in the transactions.

    • feePayer: AsyncSigner<unknown>

      The fee payer for the transactions.

    • connectionOrRbh: ConnectionOrRbh

      The connection information or recent blockhash with expiry and commitment.

    • beforeIxs: InstructionReturn | InstructionReturn[] = []

      Optional instructions to include at the beginning of each transaction.

    • afterIxs: InstructionReturn | InstructionReturn[] = []

      Optional instructions to include at the end of each transaction.

    • lookupTables: AddressLookupTableAccount[] = []

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

    • maxInstructionCount: number = 64

      The maximum number of instructions to include in each transaction.

    Returns Promise<Result<TransactionReturn[], string>>

    A promise that resolves to a result object containing either the built transactions or an error message.

Generated using TypeDoc