getUtxoCount
Gets the number of dust UTXOs in this wallet state.
What are UTXOs? UTXOs (Unspent Transaction Outputs) are the individual dust tokens that make up your wallet balance. Each UTXO represents a distinct dust token with its own:
Initial value
Creation time
Backing Night UTXO
Generation progress
Usage:
val state = DustLocalState.create()!!
try {
val count = state.getUtxoCount()
println("You have $count dust tokens")
} finally {
state.close()
}Content copied to clipboard
Error Handling: Returns 0 if:
State is closed
Native function returns 0
Return
Number of UTXOs in wallet