getblockchaininfo
Summary
Returns an object containing various state info regarding blockchain processing.
Description
Returns an object containing various state info regarding blockchain processing.
Arguments
None.
Results
value(OBJ): No description.chain(STR): current network name (main, test, testnet4, signet, regtest)blocks(NUM): the height of the most-work fully-validated chain. The genesis block has height 0headers(NUM): the current number of headers we have validatedbestblockhash(STR): the hash of the currently best blockbits(STR_HEX): nBits: compact representation of the block difficulty targettarget(STR_HEX): The difficulty targetdifficulty(NUM): the current difficultytime(NUM_TIME): The block time expressed in UNIX epoch timemediantime(NUM_TIME): The median block time expressed in UNIX epoch timeverificationprogress(NUM): estimate of verification progress [0..1]initialblockdownload(BOOL): (debug information) estimate of whether this node is in Initial Block Download modechainwork(STR_HEX): total amount of work in active chain, in hexadecimalsize_on_disk(NUM): the estimated size of the block and undo files on diskpruned(BOOL): if the blocks are subject to pruningpruneheight(NUM, optional): height of the last block pruned, plus one (only present if pruning is enabled)automatic_pruning(BOOL, optional): whether automatic pruning is enabled (only present if pruning is enabled)prune_target_size(NUM, optional): the target size used by pruning (only present if automatic pruning is enabled)signet_challenge(STR_HEX, optional): the block challenge (aka. block script), in hexadecimal (only present if the current network is a signet)warnings(ARR): any network and blockchain warnings (run with-deprecatedrpc=warningsto return the latest warning as a single string)value(STR): warning
Examples
qbit-cli getblockchaininfo
curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "getblockchaininfo", "params": []}' -H 'content-type: application/json' http://127.0.0.1:8352/