Skip to main content
Within Arkade, you hold funds as virtual outputs. A virtual output is a Bitcoin output that you own and spend on its own, as on Bitcoin. A transaction spends existing virtual outputs as inputs and creates new ones. Transactions that spend different virtual outputs do not depend on each other, so they execute in parallel. Each virtual output is the output of a virtual transaction: a complete, presigned Bitcoin transaction that nobody has broadcast. “Virtual” means only that it is not broadcast. If you broadcast it, it creates an output that only you can spend. In normal operation, nobody broadcasts it. It is there so that you can always claim your funds onchain. The SDK calls a virtual output a 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.
The delay on the exit path protects the operator. If a user tries to claim onchain a virtual output that they already gave up in a batch swap, the delay gives the operator time to broadcast the forfeit transaction first.

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:
  1. 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.
  2. 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.