Struct bitcoin_rpc_json::blockchain::BlockchainInfo[][src]

pub struct BlockchainInfo {
    pub chain: String,
    pub blocks: u64,
    pub headers: u64,
    pub bestblockhash: String,
    pub difficulty: u64,
    pub mediantime: u64,
    pub verificationprogress: f64,
    pub initialblockdownload: bool,
    pub chainwork: String,
    pub size_on_disk: u64,
    pub pruned: bool,
    pub pruneheight: u64,
    pub automatic_pruning: bool,
    pub prune_target_size: u64,
    pub softforks: Vec<Softfork>,
    pub bip9_softforks: Json,
    pub warnings: String,
}

Models the result of "getblockchaininfo"

Fields

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

The current number of blocks processed in the server

The current number of headers we have validated

The hash of the currently best block

The current difficulty

Median time for the current best block

Estimate of verification progress [0..1]

Estimate of whether this node is in Initial Block Download mode

Total amount of work in active chain, in hexadecimal

The estimated size of the block and undo files on disk

If the blocks are subject to pruning

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

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

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

Status of softforks in progress

Status of BIP9 softforks in progress

Any network and blockchain warnings.

Trait Implementations

impl Debug for BlockchainInfo
[src]

Formats the value using the given formatter. Read more

impl Clone for BlockchainInfo
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Auto Trait Implementations