[][src]Struct in3_sys::eth_block

#[repr(C)]pub struct eth_block {
    pub number: u64,
    pub hash: bytes32_t,
    pub gasUsed: u64,
    pub gasLimit: u64,
    pub author: address_t,
    pub difficulty: uint256_t,
    pub extra_data: bytes_t,
    pub logsBloom: [u8; 256],
    pub parent_hash: bytes32_t,
    pub sha3_uncles: bytes32_t,
    pub state_root: bytes32_t,
    pub receipts_root: bytes32_t,
    pub transaction_root: bytes32_t,
    pub tx_count: c_int,
    pub tx_data: *mut eth_tx_t,
    pub tx_hashes: *mut bytes32_t,
    pub timestamp: u64,
    pub seal_fields: *mut bytes_t,
    pub seal_fields_count: c_int,
}

An Ethereum Block

Fields

number: u64

< the blockNumber

hash: bytes32_t

< the blockhash

gasUsed: u64

< gas used by all the transactions

gasLimit: u64

< gasLimit

author: address_t

< the author of the block.

difficulty: uint256_t

< the difficulty of the block.

extra_data: bytes_t

< the extra_data of the block.

logsBloom: [u8; 256]

< the logsBloom-data

parent_hash: bytes32_t

< the hash of the parent-block

sha3_uncles: bytes32_t

< root hash of the uncle-trie

state_root: bytes32_t

< root hash of the state-trie

receipts_root: bytes32_t

< root of the receipts trie

transaction_root: bytes32_t

< root of the transaction trie

tx_count: c_int

< number of transactions in the block

tx_data: *mut eth_tx_t

< array of transaction data or NULL if not requested

tx_hashes: *mut bytes32_t

< array of transaction hashes or NULL if not requested

timestamp: u64

< the unix timestamp of the block

seal_fields: *mut bytes_t

< sealed fields

seal_fields_count: c_int

< number of seal fields

Trait Implementations

impl Clone for eth_block[src]

impl Copy for eth_block[src]

impl Debug for eth_block[src]

Auto Trait Implementations

impl !Send for eth_block

impl !Sync for eth_block

impl Unpin for eth_block

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.