pub struct Block {Show 21 fields
pub hash: Option<H256>,
pub parent_hash: H256,
pub sha3_uncles: Option<H256>,
pub miner: Address,
pub state_root: H256,
pub transactions_root: H256,
pub receipts_root: H256,
pub logs_bloom: Option<Bloom>,
pub difficulty: Option<Difficulty>,
pub number: Option<U256>,
pub gas_limit: U256,
pub gas_used: U256,
pub timestamp: U256,
pub extra_data: Bytecode,
pub mix_hash: Option<H256>,
pub nonce: Option<U256>,
pub total_deffficult: Option<Difficulty>,
pub base_fee_per_gas: Option<U256>,
pub size: U256,
pub transactions: Vec<TransactionOrHash>,
pub uncles: Vec<H256>,
}Fields§
§hash: Option<H256>Current block hash value
parent_hash: H256Parent block hash
sha3_uncles: Option<H256>Ommers hash
miner: AddressCoinbase
state_root: H256State root
transactions_root: H256Transactions root
receipts_root: H256Receipts root
logs_bloom: Option<Bloom>Bloom filter
difficulty: Option<Difficulty>Difficulty
number: Option<U256>U256
gas_limit: U256Gas limit
gas_used: U256Gas used
timestamp: U256Timestamp
extra_data: BytecodeExtra data
mix_hash: Option<H256>Mix hash
nonce: Option<U256>Nonce
total_deffficult: Option<Difficulty>Total difficult
base_fee_per_gas: Option<U256>Base fee per gas
size: U256Block size
transactions: Vec<TransactionOrHash>transactions
uncles: Vec<H256>Uncles
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
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