[−][src]Struct rpc::v1::types::VerboseBlock
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]
impl Debug for VerboseBlockfn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Default for VerboseBlock[src]
impl Default for VerboseBlockfn default() -> VerboseBlock[src]
fn default() -> VerboseBlockReturns the "default value" for a type. Read more
impl PartialEq for VerboseBlock[src]
impl PartialEq for VerboseBlockfn eq(&self, other: &VerboseBlock) -> bool[src]
fn eq(&self, other: &VerboseBlock) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &VerboseBlock) -> bool[src]
fn ne(&self, other: &VerboseBlock) -> boolThis method tests for !=.
Auto Trait Implementations
impl Send for VerboseBlock
impl Send for VerboseBlockimpl Sync for VerboseBlock
impl Sync for VerboseBlockBlanket Implementations
impl<T> From for T[src]
impl<T> From for Timpl<T, U> Into for T where
U: From<T>, [src]
impl<T, U> Into for T where
U: From<T>, impl<T, U> TryFrom for T where
T: From<U>, [src]
impl<T, U> TryFrom for T where
T: From<U>, type Error = !
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]
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>try_from)Performs the conversion.
impl<T> Borrow for T where
T: ?Sized, [src]
impl<T> Borrow for T where
T: ?Sized, ⓘImportant traits for &'a mut Rfn borrow(&self) -> &T[src]
fn borrow(&self) -> &TImmutably borrows from an owned value. Read more
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
impl<T, U> TryInto for T where
U: TryFrom<T>, type Error = <U as TryFrom<T>>::Error
try_from)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>try_from)Performs the conversion.
impl<T> BorrowMut for T where
T: ?Sized, [src]
impl<T> BorrowMut for T where
T: ?Sized, ⓘImportant traits for &'a mut Rfn borrow_mut(&mut self) -> &mut T[src]
fn borrow_mut(&mut self) -> &mut TMutably borrows from an owned value. Read more
impl<T> Any for T where
T: 'static + ?Sized, [src]
impl<T> Any for T where
T: 'static + ?Sized, fn get_type_id(&self) -> TypeId[src]
fn get_type_id(&self) -> TypeId🔬 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> DeserializeOwned for T where
T: Deserialize<'de>, impl<T> Erased for T
impl<T> Erased for T