getchaintips
Summary
Return information about all known tips in the block tree, including the main chain as well as orphaned branches.
Description
Return information about all known tips in the block tree, including the main chain as well as orphaned branches.
Arguments
None.
Results
value(ARR): No description.value(OBJ): No description.height(NUM): height of the chain tiphash(STR_HEX): block hash of the tipbranchlen(NUM): zero for main chain, otherwise length of branch connecting the tip to the main chainstatus(STR): status of the chain, "active" for the main chain Possible values for status:
- "invalid" This branch contains at least one invalid block
- "headers-only" Not all blocks for this branch are available, but the headers are valid
- "valid-headers" All blocks are available for this branch, but they were never fully validated
- "valid-fork" This branch is not part of the active chain, but is fully validated
- "active" This is the tip of the active main chain, which is certainly valid
Examples
qbit-cli getchaintips
curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "getchaintips", "params": []}' -H 'content-type: application/json' http://127.0.0.1:8352/