Skip to main content

select_utxos

Function select_utxos 

Source
pub fn select_utxos(
    utxos: &[ChronikUtxo],
    target_sats: i64,
) -> Result<CoinSelection, String>
Expand description

Select UTXOs to cover target_sats using largest-first strategy.

Only considers UTXOs that have no SLP/ALP token metadata (plain XEC UTXOs). Returns Err if insufficient funds.