pub struct GetBlockchainInfoResponse {Show 19 fields
pub automatic_pruning: Option<bool>,
pub bestblockhash: String,
pub bits: String,
pub blocks: u64,
pub chain: String,
pub chainwork: String,
pub difficulty: f64,
pub headers: u64,
pub initialblockdownload: bool,
pub mediantime: u64,
pub prune_target_size: Option<u64>,
pub pruned: bool,
pub pruneheight: Option<u64>,
pub signet_challenge: Option<String>,
pub size_on_disk: u64,
pub target: String,
pub time: u64,
pub verificationprogress: f64,
pub warnings: Value,
}Expand description
Response for the GetBlockchainInfo RPC method
Fields§
§automatic_pruning: Option<bool>whether automatic pruning is enabled (only present if pruning is enabled)
bestblockhash: Stringthe hash of the currently best block
bits: StringnBits: compact representation of the block difficulty target
blocks: u64the height of the most-work fully-validated chain. The genesis block has height 0
chain: Stringcurrent network name (main, test, testnet4, signet, regtest)
chainwork: Stringtotal amount of work in active chain, in hexadecimal
difficulty: f64the current difficulty
headers: u64the current number of headers we have validated
initialblockdownload: bool(debug information) estimate of whether this node is in Initial Block Download mode
mediantime: u64The median block time expressed in UNIX epoch time
prune_target_size: Option<u64>the target size used by pruning (only present if automatic pruning is enabled)
pruned: boolif the blocks are subject to pruning
pruneheight: Option<u64>height of the last block pruned, plus one (only present if pruning is enabled)
signet_challenge: Option<String>the block challenge (aka. block script), in hexadecimal (only present if the current network is a signet)
size_on_disk: u64the estimated size of the block and undo files on disk
target: StringThe difficulty target
time: u64The block time expressed in UNIX epoch time
verificationprogress: f64estimate of verification progress [0..1]
warnings: Valueany network and blockchain warnings (run with -deprecatedrpc=warnings to return the latest warning as a single string)
Trait Implementations§
Source§impl Clone for GetBlockchainInfoResponse
impl Clone for GetBlockchainInfoResponse
Source§fn clone(&self) -> GetBlockchainInfoResponse
fn clone(&self) -> GetBlockchainInfoResponse
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more