Skip to main content

select_token_utxos

Function select_token_utxos 

Source
pub fn select_token_utxos(
    utxos: &[ChronikUtxo],
    token_id: &str,
    token_amount: u64,
) -> Result<(Vec<ChronikUtxo>, CoinSelection), String>
Expand description

Select UTXOs that contain a specific SLP/ALP token. Returns the token UTXOs + plain XEC UTXOs needed to cover the fee.