CBlockPolicyEstimator::EstimateFeeRate

Estimate the feerate needed to confirm within target blocks; wraps estimateSmartFee into a FeeRateEstimation.

Synopsis

Declared in <policy/fees/block_policy_estimator.h>

[[requires_capability(0x7f2e3ae71998), requires_capability(0x7f2e2423b998)]]
util::Expected<FeeRateEstimation, FeeRateEstimationError>
EstimateFeeRate(
    int target,
    bool conservative) const;

Return Value

The fee rate estimation on success, or an error describing why none could be given.

Parameters

NameDescription
targetDesired number of blocks within which to confirm.
conservativeWhether to produce a conservative estimate valid over longer horizons.