Struct bdk::wallet::coin_selection::LargestFirstCoinSelection
source · pub struct LargestFirstCoinSelection;
Expand description
Simple and dumb coin selection
This coin selection algorithm sorts the available UTXOs by value and then picks them starting from the largest ones until the required amount is reached.
Trait Implementations§
source§impl Clone for LargestFirstCoinSelection
impl Clone for LargestFirstCoinSelection
source§fn clone(&self) -> LargestFirstCoinSelection
fn clone(&self) -> LargestFirstCoinSelection
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl CoinSelectionAlgorithm for LargestFirstCoinSelection
impl CoinSelectionAlgorithm for LargestFirstCoinSelection
source§fn coin_select(
&self,
required_utxos: Vec<WeightedUtxo>,
optional_utxos: Vec<WeightedUtxo>,
fee_rate: FeeRate,
target_amount: u64,
drain_script: &Script
) -> Result<CoinSelectionResult, Error>
fn coin_select(
&self,
required_utxos: Vec<WeightedUtxo>,
optional_utxos: Vec<WeightedUtxo>,
fee_rate: FeeRate,
target_amount: u64,
drain_script: &Script
) -> Result<CoinSelectionResult, Error>
Perform the coin selection Read more
source§impl Debug for LargestFirstCoinSelection
impl Debug for LargestFirstCoinSelection
source§impl Default for LargestFirstCoinSelection
impl Default for LargestFirstCoinSelection
source§fn default() -> LargestFirstCoinSelection
fn default() -> LargestFirstCoinSelection
Returns the “default value” for a type. Read more