pub struct Block {Show 28 fields
pub number: Option<u64>,
pub hash: Option<Hash>,
pub parent_hash: Option<Hash>,
pub nonce: Option<Nonce>,
pub sha3_uncles: Option<Hash>,
pub logs_bloom: Option<BloomFilter>,
pub transactions_root: Option<Hash>,
pub state_root: Option<Hash>,
pub receipts_root: Option<Hash>,
pub miner: Option<Address>,
pub difficulty: Option<Quantity>,
pub total_difficulty: Option<Quantity>,
pub extra_data: Option<Data>,
pub size: Option<Quantity>,
pub gas_limit: Option<Quantity>,
pub gas_used: Option<Quantity>,
pub timestamp: Option<Quantity>,
pub uncles: Option<Vec<Hash>>,
pub base_fee_per_gas: Option<Quantity>,
pub blob_gas_used: Option<Quantity>,
pub excess_blob_gas: Option<Quantity>,
pub parent_beacon_block_root: Option<Hash>,
pub withdrawals_root: Option<Hash>,
pub withdrawals: Option<Vec<Withdrawal>>,
pub l1_block_number: Option<BlockNumber>,
pub send_count: Option<Quantity>,
pub send_root: Option<Hash>,
pub mix_hash: Option<Hash>,
}
Expand description
Block object
Fields§
§number: Option<u64>
A scalar value equal to the number of ancestor blocks. The genesis block has a number of zero; formally Hi.
hash: Option<Hash>
The Keccak 256-bit hash of the block
parent_hash: Option<Hash>
The Keccak 256-bit hash of the parent block’s header, in its entirety; formally Hp.
nonce: Option<Nonce>
A 64-bit value which, combined with the mixhash, proves that a sufficient amount of computation has been carried out on this block; formally Hn.
sha3_uncles: Option<Hash>
The Keccak 256-bit hash of the ommers/uncles list portion of this block; formally Ho.
logs_bloom: Option<BloomFilter>
The Bloom filter composed from indexable information (logger address and log topics) contained in each log entry from the receipt of each transaction in the transactions list; formally Hb.
transactions_root: Option<Hash>
The Keccak 256-bit hash of the root node of the trie structure populated with each transaction in the transactions list portion of the block; formally Ht.
state_root: Option<Hash>
The Keccak 256-bit hash of the root node of the state trie, after all transactions are executed and finalisations applied; formally Hr.
receipts_root: Option<Hash>
The Keccak 256-bit hash of the root node of the trie structure populated with each transaction in the transactions list portion of the block; formally Ht.
miner: Option<Address>
The 160-bit address to which all fees collected from the successful mining of this block be transferred; formally Hc.
difficulty: Option<Quantity>
A scalar value corresponding to the difficulty level of this block. This can be calculated from the previous block’s difficulty level and the timestamp; formally Hd.
total_difficulty: Option<Quantity>
The cumulative sum of the difficulty of all blocks that have been mined in the Ethereum network since the inception of the network. It measures the overall security and integrity of the Ethereum network.
extra_data: Option<Data>
An arbitrary byte array containing data relevant to this block. This must be 32 bytes or fewer; formally Hx.
size: Option<Quantity>
The size of this block in bytes as an integer value, encoded as hexadecimal.
gas_limit: Option<Quantity>
A scalar value equal to the current limit of gas expenditure per block; formally Hl.
gas_used: Option<Quantity>
A scalar value equal to the total gas used in transactions in this block; formally Hg.
timestamp: Option<Quantity>
A scalar value equal to the reasonable output of Unix’s time() at this block’s inception; formally Hs.
uncles: Option<Vec<Hash>>
Ommers/uncles header.
base_fee_per_gas: Option<Quantity>
A scalar representing EIP1559 base fee which can move up or down each block according to a formula which is a function of gas used in parent block and gas target (block gas limit divided by elasticity multiplier) of parent block. The algorithm results in the base fee per gas increasing when blocks are above the gas target, and decreasing when blocks are below the gas target. The base fee per gas is burned.
blob_gas_used: Option<Quantity>
The total amount of blob gas consumed by the transactions within the block, added in EIP-4844.
excess_blob_gas: Option<Quantity>
A running total of blob gas consumed in excess of the target, prior to the block. Blocks with above-target blob gas consumption increase this value, blocks with below-target blob gas consumption decrease it (bounded at 0). This was added in EIP-4844.
parent_beacon_block_root: Option<Hash>
The hash of the parent beacon block’s root is included in execution blocks, as proposed by EIP-4788.
This enables trust-minimized access to consensus state, supporting staking pools, bridges, and more.
The beacon roots contract handles root storage, enhancing Ethereum’s functionalities.
withdrawals_root: Option<Hash>
The Keccak 256-bit hash of the withdrawals list portion of this block.
See EIP-4895.
withdrawals: Option<Vec<Withdrawal>>
Withdrawal represents a validator withdrawal from the consensus layer.
l1_block_number: Option<BlockNumber>
The L1 block number that would be used for block.number calls.
send_count: Option<Quantity>
The number of L2 to L1 messages since Nitro genesis.
send_root: Option<Hash>
The Merkle root of the outbox tree state.
mix_hash: Option<Hash>
A 256-bit hash which, combined with the nonce, proves that a sufficient amount of computation has been carried out on this block; formally Hm.
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>,
Source§impl FromArrow for Block
impl FromArrow for Block
Source§fn from_arrow_bin_array<B: List<Item = [u8]> + 'static, U>(
batch: &ArrowBatch,
) -> Vec<Self>
fn from_arrow_bin_array<B: List<Item = [u8]> + 'static, U>( batch: &ArrowBatch, ) -> Vec<Self>
Source§fn from_arrow(batch: &ArrowBatch) -> Vec<Self>
fn from_arrow(batch: &ArrowBatch) -> Vec<Self>
Source§fn from_arrow_bin_view_array(batch: &ArrowBatch) -> Vec<Self>
fn from_arrow_bin_view_array(batch: &ArrowBatch) -> Vec<Self>
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 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
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§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
key
and return true
if they are equal.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