---
title: "HeaderDepth returns the depth of the header in main chain or error if the
block is not found or it exists on fork"
method: GET
path: "/babylon/btclightclient/v1/depth/{hash}"
tags: ["Query"]
---

# HeaderDepth returns the depth of the header in main chain or error if the
block is not found or it exists on fork

`GET /babylon/btclightclient/v1/depth/{hash}`

## Path parameters

- `hash` string, required

## Response `200`

A successful response.

## Other responses

- `default` — An unexpected error response.

---

[API](https://skmtc.net/babylonlabs-io/apis/babylon-grpc-gateway-docs.md) · [All operations](https://skmtc.net/babylonlabs-io/apis/babylon-grpc-gateway-docs/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/babylonlabs-io/babylon-grpc-gateway-docs/versions/93a09c641887/schema)
