OptionalrenewalConfig: RenewalConfigGet VTXOs that are expiring soon based on renewal configuration
OptionalthresholdMs: numberOptional override for threshold in milliseconds
Array of expiring VTXOs, empty array if renewal is disabled or no VTXOs expiring
Get information about recoverable balance without executing recovery.
Useful for displaying to users before they decide to recover funds.
Object containing recoverable amounts and subdust information
Recover swept/expired VTXOs by settling them back to the wallet's Ark address.
This method:
Note: Settled VTXOs with long expiry are NOT recovered to avoid locking liquidity unnecessarily. Only preconfirmed subdust is recovered to consolidate small amounts.
OptionaleventCallback: (event: SettlementEvent) => voidOptional callback to receive settlement events
Settlement transaction ID
Renew expiring VTXOs by settling them back to the wallet's address
This method collects all expiring spendable VTXOs (including recoverable ones) and settles them back to the wallet, effectively refreshing their expiration time. This is the primary way to prevent VTXOs from expiring.
OptionaleventCallback: (event: SettlementEvent) => voidOptional callback for settlement events
Settlement transaction ID
VtxoManager is a unified class for managing VTXO lifecycle operations including recovery of swept/expired VTXOs and renewal to prevent expiration.
Key Features:
VTXOs become recoverable when:
Example