VtxoManager is a unified class for managing virtual output lifecycle operations including
recovery of swept/expired virtual outputs and renewal to prevent expiration.
Key Features:
Recovery: Reclaim swept or expired virtual outputs back to the wallet
Renewal: Refresh virtual output expiration time before they expire
Smart subdust handling: Automatically includes subdust virtual outputs when economically viable
Expiry monitoring: Check for virtual outputs that are expiring soon
Virtual outputs become recoverable when:
The Arkade server sweeps them (virtualStatus.state === "swept") and they remain spendable
They are preconfirmed subdust (to consolidate small amounts without locking liquidity on settled virtual outputs)
Example
constwallet = awaitWallet.create({ identity, arkServerUrl:'https://arkade.computer', settlementConfig: { // Seconds before virtual output expiry to trigger renewal vtxoThreshold:259_200, // 3 days // Whether to sweep expired boarding inputs back to a fresh boarding address boardingUtxoSweep:true, // Polling interval in milliseconds for checking boarding inputs pollIntervalMs:60_000// 1 minute }, }); constmanager = awaitwallet.getVtxoManager();
VtxoManager is a unified class for managing virtual output lifecycle operations including recovery of swept/expired virtual outputs and renewal to prevent expiration.
Key Features:
Virtual outputs become recoverable when:
Example