Create an unroll session from a virtual output outpoint and its dependency chain.
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.
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