v1

latestSwagger 2.0Open BSV License2026-07-177164113.9 KB
header

Get block headers to the common ancestor in JSON format.

get/api/v1/headers_to_common_ancestor/{hash}/json

Path parameters

hashstring required

Block, transaction, or subtree hash in hexadecimal format

Response

Block header list in JSON format

bitsinteger[]
hashstring
hash_merkle_rootinteger[]

Hash is used in several of the bitcoin messages and common structures. It typically represents the double sha256 of data.

hash_prev_blockinteger[]

Hash is used in several of the bitcoin messages and common structures. It typically represents the double sha256 of data.

heightinteger
invalidboolean
minerstring
nonceinteger

Nonce used to generate the block.

processed_atstring date-time
size_in_bytesinteger
timestampinteger

Time the block was created im unix time.

tx_countinteger
versioninteger

Version of the block. This is not the same as the protocol version.