Struct bitcoind_json_rpc_types::v18::GetBlockVerbosityOne
source · pub struct GetBlockVerbosityOne {Show 19 fields
pub hash: String,
pub confirmations: i32,
pub size: usize,
pub stripped_size: Option<usize>,
pub weight: u64,
pub height: usize,
pub version: i32,
pub version_hex: String,
pub merkle_root: String,
pub tx: Vec<String>,
pub time: usize,
pub median_time: Option<usize>,
pub nonce: u32,
pub bits: String,
pub difficulty: f64,
pub chain_work: String,
pub n_tx: u32,
pub previous_block_hash: Option<String>,
pub next_block_hash: Option<String>,
}Expand description
Result of JSON-RPC method getblock with verbosity set to 1.
Fields§
§hash: StringThe block hash (same as provided) in RPC call.
confirmations: i32The number of confirmations, or -1 if the block is not on the main chain.
size: usizeThe block size.
stripped_size: Option<usize>The block size excluding witness data.
weight: u64The block weight as defined in BIP-141.
height: usizeThe block height or index.
version: i32The block version.
version_hex: StringThe block version formatted in hexadecimal.
merkle_root: StringThe merkle root
tx: Vec<String>The transaction ids
time: usizeThe block time expressed in UNIX epoch time.
median_time: Option<usize>The median block time expressed in UNIX epoch time.
nonce: u32The nonce
bits: StringThe bits.
difficulty: f64The difficulty.
chain_work: StringExpected number of hashes required to produce the chain up to this block (in hex).
n_tx: u32The number of transactions in the block.
previous_block_hash: Option<String>The hash of the previous block (if available).
next_block_hash: Option<String>The hash of the next block (if available).
Implementations§
source§impl GetBlockVerbosityOne
impl GetBlockVerbosityOne
sourcepub fn into_model(
self,
) -> Result<GetBlockVerbosityOne, GetBlockVerbosityOneError>
pub fn into_model( self, ) -> Result<GetBlockVerbosityOne, GetBlockVerbosityOneError>
Converts version specific type to a version in-specific, more strongly typed type.
Trait Implementations§
source§impl Clone for GetBlockVerbosityOne
impl Clone for GetBlockVerbosityOne
source§fn clone(&self) -> GetBlockVerbosityOne
fn clone(&self) -> GetBlockVerbosityOne
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for GetBlockVerbosityOne
impl Debug for GetBlockVerbosityOne
source§impl<'de> Deserialize<'de> for GetBlockVerbosityOne
impl<'de> Deserialize<'de> for GetBlockVerbosityOne
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
source§impl PartialEq for GetBlockVerbosityOne
impl PartialEq for GetBlockVerbosityOne
source§fn eq(&self, other: &GetBlockVerbosityOne) -> bool
fn eq(&self, other: &GetBlockVerbosityOne) -> bool
self and other values to be equal, and is used
by ==.