Struct cfx_rpc_eth_types::Header
source · pub struct Header {Show 17 fields
pub hash: H256,
pub parent_hash: H256,
pub uncles_hash: H256,
pub author: H160,
pub miner: H160,
pub state_root: H256,
pub transactions_root: H256,
pub receipts_root: H256,
pub number: U256,
pub gas_used: U256,
pub gas_limit: U256,
pub extra_data: Bytes,
pub logs_bloom: Bloom,
pub timestamp: U256,
pub difficulty: U256,
pub base_fee_per_gas: Option<U256>,
pub size: U256,
}
Expand description
Block header representation.
Fields§
§hash: H256
Hash of the block
parent_hash: H256
Hash of the parent
uncles_hash: H256
Hash of the uncles
Authors address
miner: H160
Alias of author
state_root: H256
State root hash
transactions_root: H256
Transactions root hash
receipts_root: H256
Transactions receipts root hash
number: U256
Block number
gas_used: U256
Gas Used
gas_limit: U256
Gas Limit
extra_data: Bytes
Extra data
logs_bloom: Bloom
Logs bloom
timestamp: U256
Timestamp
difficulty: U256
Difficulty
base_fee_per_gas: Option<U256>
Base fee
size: U256
Size in bytes
Implementations§
source§impl Header
impl Header
pub fn from_phantom(pb: &PhantomBlock) -> Self
Trait Implementations§
source§impl PartialEq for Header
impl PartialEq for Header
impl Eq for Header
impl StructuralPartialEq for Header
Auto Trait Implementations§
impl RefUnwindSafe for Header
impl Send for Header
impl Sync for Header
impl Unpin for Header
impl UnwindSafe for Header
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.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.