Struct evm_rpc::RPCBlock[][src]

pub struct RPCBlock {
    pub number: Hex<U256>,
    pub hash: Hex<H256>,
    pub parent_hash: Hex<H256>,
    pub size: Hex<usize>,
    pub gas_limit: Hex<Gas>,
    pub gas_used: Hex<Gas>,
    pub timestamp: Hex<u64>,
    pub transactions: Either<Vec<Hex<H256>>, Vec<RPCTransaction>>,
    pub is_finalized: bool,
    pub transactions_root: Hex<H256>,
    pub state_root: Hex<H256>,
    pub receipts_root: Hex<H256>,
    pub nonce: u64,
    pub mix_hash: Hex<H256>,
    pub sha3_uncles: Hex<H256>,
    pub logs_bloom: Bloom,
    pub miner: Hex<Address>,
    pub difficulty: Hex<U256>,
    pub total_difficulty: Hex<U256>,
    pub extra_data: Bytes,
    pub uncles: Vec<Hex<H256>>,
}

Fields

number: Hex<U256>hash: Hex<H256>parent_hash: Hex<H256>size: Hex<usize>gas_limit: Hex<Gas>gas_used: Hex<Gas>timestamp: Hex<u64>transactions: Either<Vec<Hex<H256>>, Vec<RPCTransaction>>is_finalized: booltransactions_root: Hex<H256>state_root: Hex<H256>receipts_root: Hex<H256>nonce: u64mix_hash: Hex<H256>sha3_uncles: Hex<H256>logs_bloom: Bloomminer: Hex<Address>difficulty: Hex<U256>total_difficulty: Hex<U256>extra_data: Bytesuncles: Vec<Hex<H256>>

Implementations

impl RPCBlock[src]

pub fn new_from_head(
    header: BlockHeader,
    confirmed: bool,
    transactions: Either<Vec<Hex<H256>>, Vec<RPCTransaction>>
) -> Self
[src]

pub fn to_native_block(&self, version: BlockVersion) -> BlockHeader[src]

Trait Implementations

impl Clone for RPCBlock[src]

impl Debug for RPCBlock[src]

impl Default for RPCBlock[src]

impl<'de> Deserialize<'de> for RPCBlock[src]

impl Serialize for RPCBlock[src]

Auto Trait Implementations

impl RefUnwindSafe for RPCBlock

impl Send for RPCBlock

impl Sync for RPCBlock

impl Unpin for RPCBlock

impl UnwindSafe for RPCBlock

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> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

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

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

impl<T> MaybeDebug for T where
    T: Debug
[src]

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<T> Typeable for T where
    T: Any

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]