forEachUtxo

abstract fun forEachUtxo(doit: (Spendable) -> Boolean)

Contract UTXO (unspent transaction output) iterator. Visits each unspent transaction output. Return true ("I found it") from your callback to stop the iteration early, false ("not what I wanted") to continue with the next UTXO. Contracts should implement this so that the wallet's transaction completion tools can be used to build transactions for this contract.