Mempool-Based Fee Estimation in #Bitcoin…
Mempool-Based Fee Estimation in #Bitcoin Core
A Node can get a fee estimate by generating a block template from mempool transactions, using the fee rate of the transaction/package at the 50th percentile[0] of the generated block weight as the fee rate estimate k for the next block.