Function calculate_reward_percentiles_for_block

Source
pub fn calculate_reward_percentiles_for_block<T, R>(
    percentiles: &[f64],
    gas_used: u64,
    base_fee_per_gas: u64,
    transactions: &[T],
    receipts: &[R],
) -> Result<Vec<u128>, EthApiError>
where T: Transaction, R: TxReceipt,
Available on crate feature rpc only.
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.