pub fn gas_spent_by_transactions<T>( receipts: impl IntoIterator<Item = T>, ) -> Vec<(u64, u64)>where T: Deref<Target = Receipt>,
Retrieves gas spent by transactions as a vector of tuples (transaction index, gas used).