[][src]Struct bitcoincore_rpc_json::GetBlockchainInfoResult

pub struct GetBlockchainInfoResult {
    pub chain: String,
    pub blocks: u64,
    pub headers: u64,
    pub bestblockhash: Hash,
    pub difficulty: f64,
    pub mediantime: u64,
    pub verificationprogress: f64,
    pub initialblockdownload: bool,
    pub chainwork: Vec<u8>,
    pub size_on_disk: u64,
    pub pruned: bool,
    pub pruneheight: Option<u64>,
    pub automatic_pruning: Option<bool>,
    pub prune_target_size: Option<u64>,
    pub softforks: Vec<Softfork>,
    pub bip9_softforks: Value,
    pub warnings: String,

Models the result of "getblockchaininfo"


chain: String

Current network name as defined in BIP70 (main, test, regtest)

blocks: u64

The current number of blocks processed in the server

headers: u64

The current number of headers we have validated

bestblockhash: Hash

The hash of the currently best block

difficulty: f64

The current difficulty

mediantime: u64

Median time for the current best block

verificationprogress: f64

Estimate of verification progress [0..1]

initialblockdownload: bool

Estimate of whether this node is in Initial Block Download mode

chainwork: Vec<u8>

Total amount of work in active chain, in hexadecimal

size_on_disk: u64

The estimated size of the block and undo files on disk

pruned: bool

If the blocks are subject to pruning

pruneheight: Option<u64>

Lowest-height complete block stored (only present if pruning is enabled)

automatic_pruning: Option<bool>

Whether automatic pruning is enabled (only present if pruning is enabled)

prune_target_size: Option<u64>

The target size used by pruning (only present if automatic pruning is enabled)

softforks: Vec<Softfork>

Status of softforks in progress

bip9_softforks: Value

Status of BIP9 softforks in progress

warnings: String

Any network and blockchain warnings.

Trait Implementations

impl Clone for GetBlockchainInfoResult[src]

default fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

impl Debug for GetBlockchainInfoResult[src]

impl Serialize for GetBlockchainInfoResult[src]

impl<'de> Deserialize<'de> for GetBlockchainInfoResult[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone

type Owned = T

impl<T> From for T[src]

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

impl<T, U> TryFrom for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized

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

impl<T> BorrowMut for T where
    T: ?Sized

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

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

The type returned in the event of a conversion error.

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 

impl<T> Configure for T where
    T: ?Sized

default fn readable(self) -> Readable<Self>[src]

Marks self as using is_human_readable == true

default fn compact(self) -> Compact<Self>[src]

Marks self as using is_human_readable == false