Manages the unrolling process of a VTXO back to the Bitcoin blockchain.
The Session class implements an async iterator that processes the unrolling steps:
WAIT: Waits for a transaction to be confirmed onchain (if it's in mempool)
UNROLL: Broadcasts the next transaction in the chain to the blockchain
DONE: Indicates the unrolling process is complete
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.
Manages the unrolling process of a VTXO 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