• Builds an offchain transaction with checkpoint transactions.

    Creates one checkpoint transaction per input and a virtual transaction that combines all the checkpoints, sending to the specified outputs. This is the core function for creating Ark transactions.

    Parameters

    • inputs: ArkTxInput[]

      Array of virtual transaction inputs

    • outputs: PSBTKeyMapKeys<{}>[]

      Array of transaction outputs

    • serverUnrollScript: CSVMultisigTapscript.Type

      Server unroll script for checkpoint transactions

    Returns OffchainTx

    Object containing the virtual transaction and checkpoint transactions