Create an unroll session from a virtual output outpoint and its dependency chain.
OptionalvirtualTxRepository: VirtualTxRepositoryOptional virtual-tx repository. When provided, each step's raw tx is read from the repo first and fetched from the indexer on a miss, then cached best-effort for later exits. Omitted ⇒ exact previous behaviour (indexer only).
ReadonlybumperReadonlyexplorerReadonlyindexerReadonlytoOptional ReadonlyvirtualOptional virtual-tx repository. When provided, each step's raw tx is read from the repo first and fetched from the indexer on a miss, then cached best-effort for later exits. Omitted ⇒ exact previous behaviour (indexer only).
Iterate over the steps to be executed and execute them
An async iterator over the executed steps
Get the next step to be executed
The next step to be executed + the function to execute it
StaticcreateCreate an unroll session by loading the virtual output chain from the indexer.
OptionalvirtualTxRepository: VirtualTxRepository
Manages the unrolling process of a virtual output back to the Bitcoin blockchain.
The Session class implements an async iterator that processes the unrolling steps:
The unrolling process works by traversing the transaction chain from the root (most recent) to the leaf (oldest), broadcasting each transaction that isn't already onchain.
Example