pub struct BlockSummary {
pub height: u64,
pub hash: HashHex,
pub parent_hash: HashHex,
pub timestamp: u64,
pub proposer: PubkeyHex,
pub tx_count: u32,
pub weight: u64,
}Expand description
Compact metadata for a single L2 block. Returned by get_block_records
and embedded in larger envelopes like get_blockchain_state.
Fields§
§height: u64Block height on the L2 chain.
hash: HashHexCanonical block hash.
parent_hash: HashHexParent block hash.
timestamp: u64Unix timestamp (seconds) from the proposer’s signed header.
proposer: PubkeyHexBlock proposer’s BLS public key.
tx_count: u32Number of transactions included.
weight: u64Cumulative attestation weight.
Trait Implementations§
Source§impl Clone for BlockSummary
impl Clone for BlockSummary
Source§fn clone(&self) -> BlockSummary
fn clone(&self) -> BlockSummary
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BlockSummary
impl Debug for BlockSummary
Source§impl<'de> Deserialize<'de> for BlockSummary
impl<'de> Deserialize<'de> for BlockSummary
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BlockSummary
impl RefUnwindSafe for BlockSummary
impl Send for BlockSummary
impl Sync for BlockSummary
impl Unpin for BlockSummary
impl UnsafeUnpin for BlockSummary
impl UnwindSafe for BlockSummary
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
Mutably borrows from an owned value. Read more