getAllUtxos
Gets all dust UTXOs in this wallet state.
Convenience Method: This method combines getUtxoCount() and getUtxoAt() to return all UTXOs as a list.
Performance: This creates a list and fetches all UTXOs. For large wallets, consider iterating with getUtxoAt() instead.
Usage:
val state = DustLocalState.create()!!
try {
val utxos = state.getAllUtxos()
println("Total UTXOs: ${utxos.size}")
utxos.forEach { utxoHex ->
// Process each UTXO
}
} finally {
state.close()
}Content copied to clipboard
Return
List of hex-encoded serialized UTXOs (may be empty)