Struct cfx_rpc_eth_types::Block
source · pub struct Block {Show 23 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 espace_gas_limit: U256,
pub extra_data: Bytes,
pub logs_bloom: Bloom,
pub timestamp: U256,
pub difficulty: U256,
pub total_difficulty: U256,
pub base_fee_per_gas: Option<U256>,
pub uncles: Vec<H256>,
pub transactions: BlockTransactions,
pub size: U256,
pub nonce: H64,
pub mix_hash: H256,
}
Expand description
Block 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
espace_gas_limit: U256
Conflux espace gas limit, this is the real gas limit of the block This is a conflux espace custom field
extra_data: Bytes
Extra data
logs_bloom: Bloom
Logs bloom
timestamp: U256
Timestamp
difficulty: U256
Difficulty
total_difficulty: U256
Total difficulty
base_fee_per_gas: Option<U256>
Base fee
uncles: Vec<H256>
Uncles’ hashes
transactions: BlockTransactions
Transactions
size: U256
Size in bytes
nonce: H64
Nonce
mix_hash: H256
Mix hash
Implementations§
Trait Implementations§
Auto Trait Implementations§
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