All VTXOs have a limited lifetime that determines when the server can claim any remaining bitcoin. Understanding VTXO lifetime is crucial for maintaining control of your bitcoin.Documentation Index
Fetch the complete documentation index at: https://second.tech/docs/llms.txt
Use this file to discover all available pages before exploring further.
What happens when VTXOs expire?
When a VTXO reaches its expiry height, the server gains the ability to sweep any remaining bitcoin to its own wallet through the timelock spend paths. Users also retain the ability to spend the VTXO or perform an emergency exit (as long as they haven’t forfeited it). This mechanism allows servers to replace liquidity deployed during the VTXO’s lifetime and prevents users from griefing servers by holding expired commitments indefinitely.Avoiding expiry
Users have several options to maintain control before their VTXOs expire:- Spend the VTXO: Create spend VTXOs for payments (inherits the original expiration time)
- Refresh in a round: Convert to a new refresh VTXO with a fresh lifetime
- Cooperative exit: Work with the server to create an offboard transaction
- Emergency exit: Broadcast all transactions in the VTXO to claim bitcoin on-chain (reserved for emergencies!)