[][src]Struct rpc::v1::types::VerboseBlock

pub struct VerboseBlock {
    pub hash: H256,
    pub confirmations: i64,
    pub size: u32,
    pub strippedsize: u32,
    pub weight: u32,
    pub height: Option<u32>,
    pub version: u32,
    pub version_hex: String,
    pub merkleroot: H256,
    pub tx: Vec<H256>,
    pub time: u32,
    pub mediantime: Option<u32>,
    pub nonce: u32,
    pub bits: u32,
    pub difficulty: f64,
    pub chainwork: U256,
    pub previousblockhash: Option<H256>,
    pub nextblockhash: Option<H256>,
}

Verbose block information

Fields

Block hash

Number of confirmations. -1 if block is on the side chain

Block size

Block size, excluding witness data

Block weight

Block height TODO: bitcoind always returns value, but we hold this value for main chain blocks only

Block version

Block version as hex

Merkle root of this block

Transactions ids

Block time in seconds since epoch (Jan 1 1970 GMT)

Median block time in seconds since epoch (Jan 1 1970 GMT) TODO: bitcoind always returns value, but we can calculate this only if height(block) > 2

Block nonce

Block nbits

Block difficulty

Expected number of hashes required to produce the chain up to this block (in hex)

Hash of previous block

Hash of next block

Trait Implementations

impl Debug for VerboseBlock
[src]

Formats the value using the given formatter. Read more

impl Default for VerboseBlock
[src]

Returns the "default value" for a type. Read more

impl PartialEq for VerboseBlock
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

impl Send for VerboseBlock

impl Sync for VerboseBlock

Blanket Implementations

impl<T> From for T
[src]

Performs the conversion.

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

Performs the conversion.

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Important traits for &'a mut R

Immutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

🔬 This is a nightly-only experimental API. (try_from)

Performs the conversion.

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

Important traits for &'a mut R

Mutably borrows from an owned value. Read more

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

🔬 This is a nightly-only experimental API. (get_type_id)

this method will likely be replaced by an associated static

Gets the TypeId of self. Read more

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T