Expand description
Blob (EIP-4844) related functions and types. BlobExcessGasAndPrice is struct that helps with
calculating blob gas price and excess blob gas.
See also the EIP-4844 helpers.
calc_blob_gasprice and calc_excess_blob_gas are used to calculate the blob gas price and
excess blob gas.
BlobExcessGasAndPrice is used to store the blob gas price and excess blob gas.s
Structs§
- Blob
Excess GasAnd Price - Structure holding block blob excess gas and it calculates blob fee
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_gasfrom the parent header’sblob_gas_usedandexcess_blob_gas. usescalc_excess_blob_gasinternally. - calc_
excess_ blob_ gas_ osaka - Calculates the
excess_blob_gasfrom the parent header’sblob_gas_usedandexcess_blob_gas. - fake_
exponential - Approximates
factor * e ** (numerator / denominator)using Taylor expansion. - get_
base_ fee_ per_ blob_ gas - Calculates the base fee per blob gas. Calls
calc_blob_gaspriceinternally. Name of the function is aligned with EIP-4844 spec.