getchaintips

The getchaintips is a Bitcoin RPC method that returns information about all known tips in the block tree. This method is useful for identifying and analyzing potential forks or alternative chains in the Bitcoin network. It can be used to monitor the health and status of the network or to investigate discrepancies in blockchain data.


Return Object

The return object is an array of JSON objects, with each object representing a chain tip. The fields in each object are:

name
description
height
The height of the chain tip in the blockchain.
hash
The hash of the block corresponding to the chain tip.
branchlen
The length of the branch connected to the main chain.
status
The status of the chain tip, which can be one of the following values: active: The tip is part of the main chain. valid-fork: The tip is part of a valid but inactive fork. valid-headers: The tip is part of a valid fork but with incomplete block data. headers-only: The tip is a fork with valid headers but incomplete block data and an invalid parent block. invalid: The tip is part of an invalid fork. unknown: The tip has an unknown validation state.
Request Example
Bitcoin Get Chain Tips Request

Share on
Share on FacebookShare on XShare on LinkedIn
Did you find this page useful?