# [−] [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

`hash: H256`

Block hash

`confirmations: i64`

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

`size: u32`

Block size

`strippedsize: u32`

Block size, excluding witness data

`weight: u32`

Block weight

`height: Option<u32>`

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

`version: u32`

Block version

`version_hex: String`

Block version as hex

`merkleroot: H256`

Merkle root of this block

`tx: Vec<H256>`

Transactions ids

`time: u32`

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

`mediantime: Option<u32>`

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

`nonce: u32`

Block nonce

`bits: u32`

Block nbits

`difficulty: f64`

Block difficulty

`chainwork: U256`

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

`previousblockhash: Option<H256>`

Hash of previous block

`nextblockhash: Option<H256>`

Hash of next block

## Trait Implementations

###

`impl Debug for VerboseBlock`

[src]

####

`fn fmt(&self, f: &mut Formatter) -> Result`

[src]

Formats the value using the given formatter. Read more

###

`impl Default for VerboseBlock`

[src]

####

`fn default() -> VerboseBlock`

[src]

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

###

`impl PartialEq for VerboseBlock`

[src]

####

`fn eq(&self, other: &VerboseBlock) -> bool`

[src]

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

####

`fn ne(&self, other: &VerboseBlock) -> bool`

[src]

This method tests for `!=`.

## Auto Trait Implementations

###

`impl Send for VerboseBlock`

###

`impl Sync for VerboseBlock`

## Blanket Implementations

###

`impl<T> From for T`

[src]

####

`fn from(t: T) -> T`

[src]

Performs the conversion.

###

`impl<T, U> Into for T where U: From<T>,`

[src]

####

`fn into(self) -> U`

[src]

Performs the conversion.

###

`impl<T, U> TryFrom for T where T: From<U>,`

[src]

#### `type Error = !`

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

The type returned in the event of a conversion error.

####

`fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>`

[src]

🔬 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

### Important traits for &'a mut R

`impl<'a, R> Read for &'a mut R where
R: Read + ?Sized, impl<'a, W> Write for &'a mut W where
W: Write + ?Sized, impl<'a, I> Iterator for &'a mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;`

`fn borrow(&self) -> &T`

[src]

Immutably borrows from an owned value. Read more

###

`impl<T, U> TryInto for T where U: TryFrom<T>,`

[src]

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

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

The type returned in the event of a conversion error.

####

`fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>`

[src]

🔬 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

### Important traits for &'a mut R

`impl<'a, R> Read for &'a mut R where
R: Read + ?Sized, impl<'a, W> Write for &'a mut W where
W: Write + ?Sized, impl<'a, I> Iterator for &'a mut I where
I: Iterator + ?Sized, type Item = <I as Iterator>::Item;`

`fn borrow_mut(&mut self) -> &mut T`

[src]

Mutably borrows from an owned value. Read more

###

`impl<T> Any for T where T: 'static + ?Sized,`

[src]

####

`fn get_type_id(&self) -> TypeId`

[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`

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g. `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g. `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g. `str,u8` or `String,struct:Vec,test`)