getAvailableTokensSorted

abstract suspend fun getAvailableTokensSorted(address: String): List<DustTokenEntity>

Get all available dust tokens for an address, sorted by value (smallest first).

Used for smallest-first coin selection algorithm (matches midnight-ledger behavior). Only returns AVAILABLE tokens. Excludes PENDING and SPENT.

Note: Sorting by initial_value is approximate. For exact sorting, calculate current value on each token and sort in Kotlin.

Return

List of available dust tokens sorted by initial value

Parameters

address

Owner address