pub struct L1BlockInfo {
pub l1_gas_price: Option<u128>,
pub l1_gas_used: Option<u128>,
pub l1_fee: Option<u128>,
pub l1_fee_scalar: Option<f64>,
pub l1_base_fee_scalar: Option<u128>,
pub l1_blob_base_fee: Option<u128>,
pub l1_blob_base_fee_scalar: Option<u128>,
}
rpc-types
only.Expand description
L1 block info extracted from inout of first transaction in every block.
The subset of OpTransactionReceiptFields
, that encompasses L1 block
info:
https://github.com/ethereum-optimism/op-geth/blob/f2e69450c6eec9c35d56af91389a1c47737206ca/core/types/receipt.go#L87-L87
Fields§
§l1_gas_price: Option<u128>
L1 base fee is the minimum price per unit of gas.
Present from pre-bedrock as de facto L1 price per unit of gas. L1 base fee after Bedrock.
l1_gas_used: Option<u128>
L1 gas used.
Present from pre-bedrock, deprecated as of Fjord.
l1_fee: Option<u128>
L1 fee for the transaction.
Present from pre-bedrock.
l1_fee_scalar: Option<f64>
L1 fee scalar for the transaction
Present from pre-bedrock to Ecotone. Null after Ecotone.
l1_base_fee_scalar: Option<u128>
L1 base fee scalar. Applied to base fee to compute weighted gas price multiplier.
Always null prior to the Ecotone hardfork.
l1_blob_base_fee: Option<u128>
L1 blob base fee.
Always null prior to the Ecotone hardfork.
l1_blob_base_fee_scalar: Option<u128>
L1 blob base fee scalar. Applied to blob base fee to compute weighted gas price multiplier.
Always null prior to the Ecotone hardfork.
Trait Implementations§
Source§impl Clone for L1BlockInfo
impl Clone for L1BlockInfo
Source§fn clone(&self) -> L1BlockInfo
fn clone(&self) -> L1BlockInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for L1BlockInfo
impl Debug for L1BlockInfo
Source§impl Default for L1BlockInfo
impl Default for L1BlockInfo
Source§fn default() -> L1BlockInfo
fn default() -> L1BlockInfo
Source§impl<'de> Deserialize<'de> for L1BlockInfo
impl<'de> Deserialize<'de> for L1BlockInfo
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<L1BlockInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<L1BlockInfo, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for L1BlockInfo
impl PartialEq for L1BlockInfo
Source§impl Serialize for L1BlockInfo
impl Serialize for L1BlockInfo
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Copy for L1BlockInfo
impl Eq for L1BlockInfo
impl StructuralPartialEq for L1BlockInfo
Auto Trait Implementations§
impl Freeze for L1BlockInfo
impl RefUnwindSafe for L1BlockInfo
impl Send for L1BlockInfo
impl Sync for L1BlockInfo
impl Unpin for L1BlockInfo
impl UnwindSafe for L1BlockInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more