forEachUtxo

open override fun forEachUtxo(confirmedFirst: Boolean, doit: (Spendable) -> Boolean)

Wallet UTXO iterator.

UTXOs cached in the RAM are returned first. Your callback should return true to exit early from the loop.

Return

True to stop searching.

Parameters

confirmedFirst

If true, give confirmed UTXOs before unconfirmed ones (regardless of RAM status). Use this if iterating for spending.

doit

Do what you want with this Spendable, return true if you are finished