Function prefixWithOpUp

  • Given a transaction or transaction group, prefixes it with appl call to increase opcode budget and returns the new transaction group. A lot of the lending operations require additional opcode cost so use this to increase the budget.

    Returns

    Transaction[] transaction group with opup prefixed

    Parameters

    • opup: OpUp

      opup applications

    • userAddr: string

      account address for the user

    • transactions: Transaction | Transaction[]

      transaction(s) to prefix opup to

    • numInnerTransactions: number

      number of inner transactions to issue (remaining opcode is 691 + 689 * num.inner.txns)

    • params: SuggestedParams

      suggested params for the transactions with the fees overwritten

    Returns Transaction[]

Generated using TypeDoc