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
sourceimpl 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.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for CoinSelectionResult
impl Send for CoinSelectionResult
impl Sync for CoinSelectionResult
impl Unpin for CoinSelectionResult
impl UnwindSafe for CoinSelectionResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more