Read the fee-rate distribution of one mined Bitcoin block
The highest fee in a block says little about what most of its space cost. Bitcoin Core reports five fee-rate percentiles weighted by occupied block weight.
Ask for selected block statistics
On a mainnet node retaining block 850000, request the block identity alongside the percentiles. Restricting the statistic names keeps the response small for a time series.
bitcoin-cli getblockstats 850000 '["height","blockhash","feerate_percentiles","totalfee"]'
Separate rates from totals
The five array entries correspond to the 10th, 25th, 50th, 75th and 90th weight percentiles in sat/vB. The middle entry describes the rate at the midpoint of occupied weight. totalfee is a sum in satoshis. This is a retrospective measurement of a particular block and can differ from the fee distribution in the current mempool.