Struct bdk::wallet::coin_selection::CoinSelectionResult
source · pub struct CoinSelectionResult {
pub selected: Vec<Utxo>,
pub fee_amount: u64,
pub excess: Excess,
}
Expand description
Result of a successful coin selection
Fields§
§selected: Vec<Utxo>
List of outputs selected for use as inputs
fee_amount: u64
Total fee amount for the selected utxos in satoshis
excess: Excess
Remaining amount after deducing fees and outgoing outputs
Implementations§
source§impl CoinSelectionResult
impl CoinSelectionResult
sourcepub fn selected_amount(&self) -> u64
pub fn selected_amount(&self) -> u64
The total value of the inputs selected.
sourcepub fn local_selected_amount(&self) -> u64
pub fn local_selected_amount(&self) -> u64
The total value of the inputs selected from the local wallet.