pub struct GetBlockHeaderResponse {Show 16 fields
pub bits: String,
pub chainwork: String,
pub confirmations: i64,
pub difficulty: f64,
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 target: String,
pub time: u64,
pub version: u32,
pub versionHex: String,
}Expand description
Response for the GetBlockHeader RPC method
Fields§
§bits: StringnBits: compact representation of the block difficulty target
chainwork: StringExpected number of hashes required to produce the current chain
confirmations: i64The number of confirmations, or -1 if the block is not on the main chain
difficulty: f64The difficulty
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)
target: StringThe difficulty target
time: u64The block time expressed in UNIX epoch time
version: u32The block version
versionHex: StringThe block version formatted in hexadecimal
Trait Implementations§
Source§impl Clone for GetBlockHeaderResponse
impl Clone for GetBlockHeaderResponse
Source§fn clone(&self) -> GetBlockHeaderResponse
fn clone(&self) -> GetBlockHeaderResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GetBlockHeaderResponse
impl Debug for GetBlockHeaderResponse
Source§impl<'de> Deserialize<'de> for GetBlockHeaderResponse
impl<'de> Deserialize<'de> for GetBlockHeaderResponse
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for GetBlockHeaderResponse
impl PartialEq for GetBlockHeaderResponse
Source§impl Serialize for GetBlockHeaderResponse
impl Serialize for GetBlockHeaderResponse
impl StructuralPartialEq for GetBlockHeaderResponse
Auto Trait Implementations§
impl Freeze for GetBlockHeaderResponse
impl RefUnwindSafe for GetBlockHeaderResponse
impl Send for GetBlockHeaderResponse
impl Sync for GetBlockHeaderResponse
impl Unpin for GetBlockHeaderResponse
impl UnwindSafe for GetBlockHeaderResponse
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more