Module utils

Module utils 

Source
Expand description

Commonly used code snippets

Functionsยง

binary_search
Performs a binary search within a given block range to find the desired block number.
calculate_gas_used_and_next_log_index
Calculates the gas used and next log index for a transaction at the given index
checked_blob_gas_used_ratio
Calculates the blob gas used ratio for a block, accounting for the case where max_blob_gas_per_block is zero.
recover_raw_transaction
Recovers a SignedTransaction from an enveloped encoded byte stream.