pub struct FeeEstimationConfig {
pub fallback_sat_per_vb: f64,
pub cache_ttl_secs: u64,
pub quote_max_input_count: usize,
pub quote_fixed_safety_sat: u64,
pub quote_safety_multiplier: f64,
}Expand description
Configuration for BDK fee estimation.
Fee rates are cached per payment tier. Melt quote fees use a conservative weight estimate because the quote is created before BDK performs final coin selection. These knobs expose the operator-facing tradeoffs: fallback fee rate, maximum quote size, and quote safety padding. Internal constants cover the lower-level wallet sampling and input weight assumptions.
Fields§
§fallback_sat_per_vb: f64Fee rate used when chain-source estimation fails, in sat/vB.
cache_ttl_secs: u64How long a per-tier fee-rate estimate is cached, in seconds.
quote_max_input_count: usizeMaximum input count reserved at quote time.
quote_fixed_safety_sat: u64Fixed safety margin added to quote-time fee estimates, in sats.
quote_safety_multiplier: f64Multiplicative safety margin applied after the raw quote fee estimate.
Trait Implementations§
Source§impl Clone for FeeEstimationConfig
impl Clone for FeeEstimationConfig
Source§fn clone(&self) -> FeeEstimationConfig
fn clone(&self) -> FeeEstimationConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for FeeEstimationConfig
impl Debug for FeeEstimationConfig
Auto Trait Implementations§
impl Freeze for FeeEstimationConfig
impl RefUnwindSafe for FeeEstimationConfig
impl Send for FeeEstimationConfig
impl Sync for FeeEstimationConfig
impl Unpin for FeeEstimationConfig
impl UnsafeUnpin for FeeEstimationConfig
impl UnwindSafe for FeeEstimationConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more