pub struct BlockchainInfo {Show 17 fields
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,
}
Expand description
Models the result of “getblockchaininfo”
Fields§
§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: String
The hash of the currently best block
difficulty: u64
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: String
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: u64
Lowest-height complete block stored (only present if pruning is enabled)
automatic_pruning: bool
Whether automatic pruning is enabled (only present if pruning is enabled)
prune_target_size: u64
The target size used by pruning (only present if automatic pruning is enabled)
softforks: Vec<Softfork>
Status of softforks in progress
bip9_softforks: Json
Status of BIP9 softforks in progress
warnings: String
Any network and blockchain warnings.
Trait Implementations§
Source§impl Clone for BlockchainInfo
impl Clone for BlockchainInfo
Source§fn clone(&self) -> BlockchainInfo
fn clone(&self) -> BlockchainInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more