Module spec_id

Module spec_id 

Source
Expand description

Specification ID utilities for handling different Ethereum hardforks and protocol versions Ethereum mainnet hardfork specification ID mapping

This module provides utilities to determine the correct SpecId (hardfork) based on block numbers for Ethereum mainnet.

Functionsยง

get_blob_base_fee_update_fraction_by_spec_id
Returns the blob base fee update fraction based on the spec id.
get_hardfork_info
Get hardfork information for a specific SpecId
get_mainnet_spec_id
Get the SpecId for a given block number on Ethereum mainnet