getchainstates
Summary
Return information about chainstates.
Description
Return information about chainstates.
Arguments
None.
Results
value(OBJ): No description.headers(NUM): the number of headers seen so farchainstates(ARR): list of the chainstates ordered by work, with the most-work (active) chainstate lastvalue(OBJ): No description.blocks(NUM): number of blocks in this chainstatebestblockhash(STR_HEX): blockhash of the tipbits(STR_HEX): nBits: compact representation of the block difficulty targettarget(STR_HEX): The difficulty targetdifficulty(NUM): difficulty of the tipverificationprogress(NUM): progress towards the network tipsnapshot_blockhash(STR_HEX, optional): the base block of the snapshot this chainstate is based on, if anycoins_db_cache_bytes(NUM): size of the coinsdb cachecoins_tip_cache_bytes(NUM): size of the coinstip cachevalidated(BOOL): whether the chainstate is fully validated. True if all blocks in the chainstate were validated, false if the chain is based on a snapshot and the snapshot has not yet been validated.
Examples
qbit-cli getchainstates
curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "getchainstates", "params": []}' -H 'content-type: application/json' http://127.0.0.1:8352/