pub struct GetBlockchainInfoRes {
pub best_block: String,
pub height: u32,
pub ibd: bool,
pub validated: u32,
pub latest_work: String,
pub latest_block_time: u32,
pub leaf_count: u32,
pub root_count: u32,
pub root_hashes: Vec<String>,
pub chain: String,
pub progress: Option<f32>,
pub difficulty: u64,
}Fields§
§best_block: StringThe best block we know about
This should be the hash of the latest block in the most PoW chain we know about. We may or may not have fully-validated it yet
height: u32The depth of the most-PoW chain we know about
ibd: boolWhether we are on Initial Block Download
validated: u32How many blocks we have fully-validated so far? This number will be smaller than height during IBD, and should be equal to height otherwise
latest_work: StringThe work performed by the last block
This is the estimated amount of hashes the miner of this block had to perform before mining that block, on average
latest_block_time: u32The UNIX timestamp for the latest block, as reported by the block’s header
leaf_count: u32How many leaves we have in the utreexo accumulator so far
This should be equal to the number of UTXOs returned by core’s gettxoutsetinfo
root_count: u32How many roots we have in the acc
root_hashes: Vec<String>The actual hex-encoded roots
chain: StringA short string representing the chain we’re in
progress: Option<f32>The validation progress
0% means we didn’t validate any block. 100% means we’ve validated all blocks, so validated == height
difficulty: u64Current network “difficulty”
On average, miners needs to make difficulty hashes before finding one that
solves a block’s PoW