Module block
Expand description
Block related types and functions.
Block
trait is used to retrieve block information required for execution.
Modules§
- blob
- Blob (EIP-4844) related functions and types.
BlobExcessGasAndPrice
is struct that helps with calculating blob gas price and excess blob gas.
Structs§
- Blob
Excess GasAnd Price - Structure holding block blob excess gas and it calculates blob fee
Traits§
- Block
- Trait for retrieving block information required for execution.
Functions§
- calc_
blob_ gasprice - Calculates the blob gas price from the header’s excess blob gas field.
- calc_
excess_ blob_ gas - Calculates the
excess_blob_gas
from the parent header’sblob_gas_used
andexcess_blob_gas
. usescalc_excess_blob_gas
internally. - calc_
excess_ blob_ gas_ osaka - Calculates the
excess_blob_gas
from the parent header’sblob_gas_used
andexcess_blob_gas
.