Block Headers Client
Connecting to the p2p node network for headers only
With LiteClient toolbox, we introduce a Java implementation of BHC called HeaderSV.
HeaderSV is a Java implementation of Block Header Client. The client will connect to the BitcoinSV network and manage whitelists and blacklists internally. The application ensures that it is always connected to at least the minimum number of peers configured before synchronizing any blocks.
A REST API is also provided by the application which will allow rapid lookups of chain and network state, as well as basic controls to control stored data.
The networks currently supported by the client are:
Additional networks can be added with ease.
The endpoints used by HeaderSV are listed below:
Returns the header with the given hash
Returns the header with the given height
Returns the header with the given hash and their state
Returns a list of peers that are connected to the application
Returns the count of nodes connected
Prunes a specified fork
Returns the latest headers for the tip of the chain and any forks