pub struct Block {Show 21 fields
pub hash: Option<BytesM<32>>,
pub parent_hash: BytesM<32>,
pub sha3_uncles: Option<BytesM<32>>,
pub miner: Address,
pub state_root: BytesM<32>,
pub transactions_root: BytesM<32>,
pub receipts_root: BytesM<32>,
pub logs_bloom: Option<Bytes>,
pub difficulty: Option<Bytes>,
pub number: Option<Uint<256>>,
pub gas_limit: Uint<256>,
pub gas_used: Uint<256>,
pub timestamp: Uint<256>,
pub extra_data: Bytes,
pub mix_hash: Option<BytesM<32>>,
pub nonce: Option<Uint<256>>,
pub total_deffficult: Option<Bytes>,
pub base_fee_per_gas: Option<Uint<256>>,
pub size: Uint<256>,
pub transactions: Vec<TransactionOrHash, Global>,
pub uncles: Vec<BytesM<32>, Global>,
}Fields§
§hash: Option<BytesM<32>>Current block hash value
parent_hash: BytesM<32>Parent block hash
sha3_uncles: Option<BytesM<32>>Ommers hash
miner: AddressCoinbase
state_root: BytesM<32>State root
transactions_root: BytesM<32>Transactions root
receipts_root: BytesM<32>Receipts root
logs_bloom: Option<Bytes>Bloom filter
difficulty: Option<Bytes>Difficulty
number: Option<Uint<256>>U256
gas_limit: Uint<256>Gas limit
gas_used: Uint<256>Gas used
timestamp: Uint<256>Timestamp
extra_data: BytesExtra data
mix_hash: Option<BytesM<32>>Mix hash
nonce: Option<Uint<256>>Nonce
total_deffficult: Option<Bytes>Total difficult
base_fee_per_gas: Option<Uint<256>>Base fee per gas
size: Uint<256>Block size
transactions: Vec<TransactionOrHash, Global>transactions
uncles: Vec<BytesM<32>, Global>Uncles
Trait Implementations§
source§impl<'de> Deserialize<'de> for Block
impl<'de> Deserialize<'de> for Block
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<Block, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<Block, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Serialize for Block
impl Serialize for Block
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more