---
title: "Get block headers to the common ancestor in JSON format."
method: GET
path: "/api/v1/headers_to_common_ancestor/{hash}/json"
tags: ["header"]
---

# Get block headers to the common ancestor in JSON format.

`GET /api/v1/headers_to_common_ancestor/{hash}/json`

## Path parameters

- `hash` string, required

## Response `200`

Block header list in JSON format

- BlockHeaderResponse[]
  - `bits` integer[]
  - `hash` string
  - `hash_merkle_root` integer[] — Hash is used in several of the bitcoin messages and common structures. It typically represents the double sha256 of data.
  - `hash_prev_block` integer[] — Hash is used in several of the bitcoin messages and common structures. It typically represents the double sha256 of data.
  - `height` integer
  - `invalid` boolean
  - `miner` string
  - `nonce` integer — Nonce used to generate the block.
  - `processed_at` string, date-time
  - `size_in_bytes` integer
  - `timestamp` integer — Time the block was created im unix time.
  - `tx_count` integer
  - `version` integer — Version of the block. This is not the same as the protocol version.

## Other responses

- `400` — Error response
- `404` — Error response

---

[API](https://skmtc.net/bsv-blockchain/apis/teranode-asset-service-api.md) · [All operations](https://skmtc.net/bsv-blockchain/apis/teranode-asset-service-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/bsv-blockchain/teranode-asset-service-api/versions/5bc9be41e029/schema)
