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

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

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

## Request

- Base URL: `/api/v1` (relative, and the document was published on a file host, not at the API’s origin)
- URL: `/api/v1/api/v1/headers_to_common_ancestor/{hash}/hex`
- Auth: none declared

## Path parameters

- `hash` string, required

## Response `200`

Hex string response

## Other responses

- `400`: Error response
- `404`: Error response

---

[API](https://skmtc.dev/bsv-blockchain/apis/teranode-asset-service-api.md) - [All operations](https://skmtc.dev/bsv-blockchain/apis/teranode-asset-service-api/llms.txt) - [OpenAPI document](https://skmtc.dev/bsv-blockchain/apis/teranode-asset-service-api/revisions/a17a58e5c6fc?raw)
