Estimate the fee rate required for a transaction to be included in the next block.
Synopsis
Declared in <policy/fees/mempool_estimator.h>
class MemPoolFeeRateEstimator;
Description
Uses Bitcoin Core's block‐building algorithm to generate a block template from the mempool, then calculates percentile fee rates from the selected chunks: the 75th percentile is returned as the economical estimate and the 50th percentile as the conservative estimate.
Types
Name |
Description |
Block percentile fee rates (in sat/vB). |
Enums
Name |
Description |
Health of the recent mined‐block window for fee rate estimation. |
Member Functions
Name |
Description |
|
Constructs the estimator bound to a mempool and chainstate. |
|
Default destructor. |
Estimates the fee rate for inclusion in the next block. |
|
Persists the tracked mined‐block statistics to disk. |
|
Assesses the health of the recent mined‐block window for fee rate estimation. |
|
Returns the tracked statistics for recently mined blocks. |
|
Checks if recent mined blocks indicate a healthy mempool state. |
|
Returns the maximum confirmation target supported by this estimator. |
|
Records mempool coverage statistics for a newly connected block. |
|
Deserialize mined‐block stats without taking ownership of file. |
|
Serialize mined‐block stats without taking ownership of file. |
Static Member Functions
Name |
Description |
Calculate the 50th and 75th percentile fee rates from block template chunks, sorted in descending mining‐score order. A percentile is left empty when the chunks cannot cover the corresponding fraction of a block. |
Created with MrDocs