pub struct FeerateEstimations {
pub priority_bucket: FeerateBucket,
pub normal_buckets: Vec<FeerateBucket>,
pub low_buckets: Vec<FeerateBucket>,
}Fields§
§priority_bucket: FeerateBucketTop-priority feerate bucket. Provides an estimation of the feerate required for sub-second DAG inclusion.
Note: for all buckets, feerate values represent fee/mass of a transaction in sompi/gram units.
Given a feerate value recommendation, calculate the required fee by
taking the transaction mass and multiplying it by feerate: fee = feerate * mass(tx)
normal_buckets: Vec<FeerateBucket>A vector of normal priority feerate values. The first value of this vector is guaranteed to exist and
provide an estimation for sub-minute DAG inclusion. All other values will have shorter estimation
times than all low_bucket values. Therefor by chaining [priority] | normal | low and interpolating
between them, one can compose a complete feerate function on the client side. The API makes an effort
to sample enough “interesting” points on the feerate-to-time curve, so that the interpolation is meaningful.
low_buckets: Vec<FeerateBucket>A vector of low priority feerate values. The first value of this vector is guaranteed to exist and provide an estimation for sub-hour DAG inclusion.
Implementations§
Source§impl FeerateEstimations
impl FeerateEstimations
pub fn ordered_buckets(&self) -> Vec<FeerateBucket>
Trait Implementations§
Source§impl Clone for FeerateEstimations
impl Clone for FeerateEstimations
Source§fn clone(&self) -> FeerateEstimations
fn clone(&self) -> FeerateEstimations
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for FeerateEstimations
impl Debug for FeerateEstimations
Auto Trait Implementations§
impl Freeze for FeerateEstimations
impl RefUnwindSafe for FeerateEstimations
impl Send for FeerateEstimations
impl Sync for FeerateEstimations
impl Unpin for FeerateEstimations
impl UnwindSafe for FeerateEstimations
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<S> CastArc for Swhere
S: CastFromSync + ?Sized,
impl<S> CastArc for Swhere
S: CastFromSync + ?Sized,
Source§impl<T> CastFrom for Twhere
T: Any + 'static,
impl<T> CastFrom for Twhere
T: Any + 'static,
Source§fn ref_any(&self) -> &(dyn Any + 'static)
fn ref_any(&self) -> &(dyn Any + 'static)
Any, which is backed by the type implementing this trait.Source§fn mut_any(&mut self) -> &mut (dyn Any + 'static)
fn mut_any(&mut self) -> &mut (dyn Any + 'static)
Any, which is backed by the type implementing this trait.Source§impl<T> CastFromSync for T
impl<T> CastFromSync for T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more