resetSpentUtxosForHealing

suspend fun resetSpentUtxosForHealing(address: String): Int

Reset ALL SPENT UTXOs to AVAILABLE for self-healing.

Purpose: Self-heal corrupted UTXO state during full resync.

Why reset ALL? During a full resync, we replay ALL transactions from the beginning. The sync will correctly re-mark spent UTXOs as SPENT based on actual blockchain history. So it's safe to reset everything and let the sync rebuild the correct state.

Return

Number of UTXOs reset from SPENT to AVAILABLE

Parameters

address

Owner address