Reading the sample behind a Stellar inclusion-fee percentile
A dashboard displays the 95th percentile as a single fee number. Readers need to know which transactions and how many closed ledgers produced that figure.
Read the distribution for the transaction class
Use sorobanInclusionFee for Soroban inclusion fees and inclusionFee for classic transactions. Store p95, transactionCount, ledgerCount and the response’s latestLedger together. Keep amounts in stroops and convert numeric strings before numeric sorting. As strings, “1000” sorts before “200”.
{"jsonrpc":"2.0","id":3,"method":"getFeeStats"}
Distinguish an observed fee from a contract budget
For an illustrative sample of four transactions with a reported p95 of 200 stroops, label the graph with that small sample size. A later sample covering hundreds of transactions gives the reader different context even if its percentile is also 200. The distribution measures past inclusion fees. Contract execution also has a resource fee, so passing the inclusion percentile alone to a total-cost display would omit part of the cost.