pub struct GetBlockResponse {Show 24 fields
pub bits: String,
pub chainwork: String,
pub confirmations: i64,
pub difficulty: f64,
pub field_20: Value,
pub field_22: Value,
pub hash: String,
pub height: u64,
pub mediantime: u64,
pub merkleroot: String,
pub nTx: u64,
pub nextblockhash: Option<String>,
pub nonce: u64,
pub previousblockhash: Option<String>,
pub size: u64,
pub strippedsize: u64,
pub target: String,
pub time: u64,
pub tx: Value,
pub tx_1: Value,
pub tx_2: Value,
pub version: u32,
pub versionHex: String,
pub weight: u64,
}Expand description
Response for the GetBlock RPC method
Fields§
§bits: StringnBits: compact representation of the block difficulty target
chainwork: StringExpected number of hashes required to produce the chain up to this block (in hex)
confirmations: i64The number of confirmations, or -1 if the block is not on the main chain
difficulty: f64The difficulty
field_20: ValueSame output as verbosity = 1
field_22: ValueSame output as verbosity = 2
hash: Stringthe block hash (same as provided)
height: u64The block height or index
mediantime: u64The median block time expressed in UNIX epoch time
merkleroot: StringThe merkle root
nTx: u64The number of transactions in the block
nextblockhash: Option<String>The hash of the next block (if available)
nonce: u64The nonce
previousblockhash: Option<String>The hash of the previous block (if available)
size: u64The block size
strippedsize: u64The block size excluding witness data
target: StringThe difficulty target
time: u64The block time expressed in UNIX epoch time
tx: ValueThe transaction ids
tx_1: Value§tx_2: Value§version: u32The block version
versionHex: StringThe block version formatted in hexadecimal
weight: u64The block weight as defined in BIP 141
Trait Implementations§
Source§impl Clone for GetBlockResponse
impl Clone for GetBlockResponse
Source§fn clone(&self) -> GetBlockResponse
fn clone(&self) -> GetBlockResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more