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(0x7ff379285c48), requires_capability(0x7ff374096008)]]
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.