pub struct Block {Show 21 fields
pub base_fee_per_gas: Option<Nat256>,
pub number: Nat256,
pub difficulty: Option<Nat256>,
pub extra_data: Hex,
pub gas_limit: Nat256,
pub gas_used: Nat256,
pub hash: Hex32,
pub logs_bloom: Hex256,
pub miner: Hex20,
pub mix_hash: Hex32,
pub nonce: Nat256,
pub parent_hash: Hex32,
pub receipts_root: Hex32,
pub sha3_uncles: Hex32,
pub size: Nat256,
pub state_root: Hex32,
pub timestamp: Nat256,
pub total_difficulty: Option<Nat256>,
pub transactions: Vec<Hex32>,
pub transactions_root: Option<Hex32>,
pub uncles: Vec<Hex32>,
}
Fields§
§base_fee_per_gas: Option<Nat256>
Base fee per gas Only included for blocks after the London Upgrade / EIP-1559.
number: Nat256
Block number
difficulty: Option<Nat256>
Difficulty
extra_data: Hex
Extra data
gas_limit: Nat256
Maximum gas allowed in this block
gas_used: Nat256
Gas used by all transactions in this block
hash: Hex32
Block hash
logs_bloom: Hex256
Bloom filter for the logs.
miner: Hex20
Miner
mix_hash: Hex32
Mix hash
nonce: Nat256
Nonce
parent_hash: Hex32
Parent block hash
receipts_root: Hex32
Receipts root
sha3_uncles: Hex32
Ommers hash
size: Nat256
Block size
state_root: Hex32
State root
timestamp: Nat256
Timestamp
total_difficulty: Option<Nat256>
Total difficulty is the sum of all difficulty values up to and including this block.
Note: this field was removed from the official JSON-RPC specification in https://github.com/ethereum/execution-apis/pull/570 and may no longer be served by providers.
transactions: Vec<Hex32>
Transaction hashes
transactions_root: Option<Hex32>
Transactions root
uncles: Vec<Hex32>
Uncles
Trait Implementations§
Source§impl CandidType for Block
impl CandidType for Block
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 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
Mutably borrows from an owned value. Read more