pub struct L1BatchDetails {Show 16 fields
pub number: u64,
pub timestamp: u64,
pub l1_tx_count: u64,
pub l2_tx_count: u64,
pub root_hash: Option<B256>,
pub status: BlockStatus,
pub commit_tx_hash: Option<B256>,
pub committed_at: Option<DateTime<Utc>>,
pub prove_tx_hash: Option<B256>,
pub proven_at: Option<DateTime<Utc>>,
pub execute_tx_hash: Option<B256>,
pub executed_at: Option<DateTime<Utc>>,
pub l1_gas_price: U256,
pub l2_fair_gas_price: U256,
pub fair_pubdata_price: Option<U256>,
pub base_system_contracts_hashes: BaseSystemContractsHashes,
}Expand description
Response type for zks_getL1BatchDetails.
Fields§
§number: u64L1 batch number.
timestamp: u64Unix timestamp when the batch was processed.
l1_tx_count: u64Number of L1 transactions included in the batch.
l2_tx_count: u64Number of L2 transactions associated with this batch.
root_hash: Option<B256>Root hash of the state after processing the batch.
status: BlockStatusCurrent status of the batch: sealed or verified.
commit_tx_hash: Option<B256>L1 transaction hash for the commit operation.
committed_at: Option<DateTime<Utc>>Timestamp when the batch was committed on L1.
prove_tx_hash: Option<B256>L1 transaction hash for the proof submission.
proven_at: Option<DateTime<Utc>>Timestamp when the proof was submitted.
execute_tx_hash: Option<B256>L1 transaction hash for the execution.
executed_at: Option<DateTime<Utc>>Timestamp when the execution was completed.
l1_gas_price: U256Gas price on L1 at the time of batch processing.
l2_fair_gas_price: U256Fair gas price on L2 at the time of batch processing.
fair_pubdata_price: Option<U256>Cost of publishing one byte (in wei).
base_system_contracts_hashes: BaseSystemContractsHashesHashes of the base system contracts involved in the batch.
Trait Implementations§
Source§impl Clone for L1BatchDetails
impl Clone for L1BatchDetails
Source§fn clone(&self) -> L1BatchDetails
fn clone(&self) -> L1BatchDetails
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for L1BatchDetails
impl Debug for L1BatchDetails
Source§impl<'de> Deserialize<'de> for L1BatchDetails
impl<'de> Deserialize<'de> for L1BatchDetails
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for L1BatchDetails
impl PartialEq for L1BatchDetails
Source§impl Serialize for L1BatchDetails
impl Serialize for L1BatchDetails
impl StructuralPartialEq for L1BatchDetails
Auto Trait Implementations§
impl Freeze for L1BatchDetails
impl RefUnwindSafe for L1BatchDetails
impl Send for L1BatchDetails
impl Sync for L1BatchDetails
impl Unpin for L1BatchDetails
impl UnwindSafe for L1BatchDetails
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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