pub fn calculate_reward_percentiles_for_block(
percentiles: &[f64],
gas_used: u64,
base_fee_per_gas: u64,
transactions: &[TransactionSigned],
receipts: &[Receipt],
) -> Result<Vec<u128>, EthApiError>
Expand description
Calculates reward percentiles for transactions in a block header. Given a list of percentiles and a sealed block header, this function computes the corresponding rewards for the transactions at each percentile.
The results are returned as a vector of U256 values.