pub struct Block {Show 13 fields
pub number: u64,
pub hash: B256,
pub parent_hash: B256,
pub timestamp: u64,
pub gas_limit: u64,
pub gas_used: u64,
pub base_fee_per_gas: Option<U256>,
pub miner: Address,
pub transactions: BlockTransactions,
pub l1_block_number: u64,
pub send_count: u64,
pub send_root: B256,
pub mix_hash: B256,
}Expand description
What eth_getBlockByNumber and eth_getBlockByHash answer on Nitro.
Fields§
§number: u64§hash: B256§parent_hash: B256§timestamp: u64Unix seconds.
gas_limit: u64§gas_used: u64§base_fee_per_gas: Option<U256>§miner: AddressThe sequencer’s fee account, not a miner.
transactions: BlockTransactions§l1_block_number: u64The parent chain’s block this one was sequenced at.
send_count: u64How many messages to the parent chain had been sent by the end of this block: the size of the outbox’s tree.
send_root: B256The root of the outbox’s tree after this block, what a confirmed assertion commits to.
mix_hash: B256Nitro packs the send count, the parent block and ArbOS’s version into it.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Block
impl<'de> Deserialize<'de> for Block
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
impl Eq for Block
impl StructuralPartialEq for Block
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnsafeUnpin for Block
impl UnwindSafe for Block
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.