pub struct BlockHeader {Show 13 fields
pub id: Hash,
pub da_height: UInt,
pub transactions_count: Quantity,
pub consensus_parameters_version: UInt,
pub state_transition_bytecode_version: UInt,
pub message_receipt_count: Quantity,
pub transactions_root: Hash,
pub message_outbox_root: Hash,
pub event_inbox_root: Hash,
pub height: UInt,
pub prev_root: Hash,
pub time: UInt,
pub application_hash: Hash,
}Expand description
The header contains metadata about a certain block.
Fields§
§id: HashHash of the header
da_height: UIntThe block height for the data availability layer up to which (inclusive) input messages are processed.
transactions_count: QuantityThe number of transactions in the block.
consensus_parameters_version: UIntversion of consensus
state_transition_bytecode_version: UIntversion of the state transition
message_receipt_count: QuantityThe number of receipt messages in the block.
transactions_root: HashThe merkle root of the transactions in the block.
message_outbox_root: HashThe merkle root of the messages in the block.
event_inbox_root: Hash§height: UIntThe block height.
prev_root: HashThe merkle root of all previous consensus header hashes (not including this block).
time: UIntThe timestamp for the block.
application_hash: HashThe hash of the serialized application header for this block.
Trait Implementations§
Source§impl Clone for BlockHeader
impl Clone for BlockHeader
Source§fn clone(&self) -> BlockHeader
fn clone(&self) -> BlockHeader
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 BlockHeader
impl Debug for BlockHeader
Source§impl Default for BlockHeader
impl Default for BlockHeader
Source§fn default() -> BlockHeader
fn default() -> BlockHeader
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BlockHeader
impl<'de> Deserialize<'de> for BlockHeader
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
Source§impl PartialEq for BlockHeader
impl PartialEq for BlockHeader
Source§impl Serialize for BlockHeader
impl Serialize for BlockHeader
impl Eq for BlockHeader
impl StructuralPartialEq for BlockHeader
Auto Trait Implementations§
impl Freeze for BlockHeader
impl RefUnwindSafe for BlockHeader
impl Send for BlockHeader
impl Sync for BlockHeader
impl Unpin for BlockHeader
impl UnwindSafe for BlockHeader
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