---
title: "Get the fork tree for a block."
method: GET
path: "/api/v1/block/{hash}/forks"
tags: ["block"]
---

# Get the fork tree for a block.

`GET /api/v1/block/{hash}/forks`

## 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/block/{hash}/forks`
- Auth: none declared

Returns a hierarchical tree of blocks showing forks.

## Path parameters

- `hash` string, required

## Response `200`

Block forks tree

- Forks: It encapsulates the entire fork hierarchy starting from a given block.
  - `tree` ForksTree: It contains block information and maintains parent-child relationships.
    - `block_time` integer
    - `children` ForksTree[]
    - `hash` string
    - `height` integer
    - `id` integer
    - `link` ForksLink: Used for visual representation of block relationships.
      - `direction` string
      - `name` string
      - `nodeName` string
    - `miner` string
    - `size` integer
    - `timestamp` integer
    - `tx_count` integer

## 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)
