Vtxo, for example in getVtxos().
Virtual Output Structure
A virtual output is a Taproot output. Its default script has two spending paths, and its key path is disabled:- Collaborative path. The owner and the operator sign together. Every offchain transaction in the virtual mempool uses this path, so it is instant.
- Exit path. The owner spends alone after a delay. If the operator is unavailable, this path lets the owner claim the funds onchain without it. This is unilateral exit.
Batch Outputs
Virtual outputs do not each take an onchain output. A commitment transaction creates one shared output, the batch output, that holds the virtual outputs of every user in the batch. Thousands of virtual outputs can share one onchain output. The batch output is a Taproot output with two ways to spend it:- Key path. A MuSig2 key of the operator and the cosigner keys of the batch’s participants. They use it to presign the virtual transaction tree below.
- Sweep path. The operator alone can spend the batch output after the batch expires. See Batch Expiry.
Virtual Transaction Tree
A tree of presigned virtual transactions splits the batch output into virtual outputs. The batch output is the root. Each level splits its input into smaller branches. The leaves are the individual virtual outputs. Each branch can also be spent by its own subset of keys (A+B+S, C+D+S), down to each virtual output with its own exit path: To exit unilaterally, a user broadcasts only the transactions on the path from the batch output to their virtual output. Other users’ virtual outputs stay valid.Virtual Output States
The operator can also allow virtual outputs below Bitcoin’s dust limit. A sub-dust output can’t be spent offchain or exited onchain. It can only join a batch, together with other outputs that bring the total above the dust limit.