> For the complete documentation index, see [llms.txt](https://teamhycon.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://teamhycon.gitbook.io/docs/api-v1-1/getting-blockchain-information/getting-block-info-at-a-specific-height.md).

# Getting block info at a specific height

**Path Parameter**

| Parameter | Type   | Required | Description                                        |
| --------- | ------ | -------- | -------------------------------------------------- |
| `height`  | number | Yes      | Height of a specific block on the Hycon blockchain |

**Response - `200 OK, application/json`**

| Parameter    | Type   | Description                                  |
| ------------ | ------ | -------------------------------------------- |
| `hash`       | string | Hash representation of the transaction       |
| `difficulty` | string | Mining difficulty of block                   |
| `stateRoot`  | string | Hash of the world state at that block        |
| `merkleRoot` | string | Merkle hash of all transactions in the block |
| `txs`        | list   | List of transactions in the block            |
| `height`     | string | Height of the block                          |
| `timestamp`  | number | Timestamp when the block was added           |

**Response Error Table**

| Status | Error       | Message                       |
| ------ | ----------- | ----------------------------- |
| 404    | `NOT_FOUND` | no block found at that height |

GET/api/v1/block/height/{height}

**Example request**

```
$ curl -X GET http://localhost:2442/api/v1/block/height/317713 \
    -H 'Content-Type: application/json;charset=utf-8'
```

**Response (Success)**

```
{
    "hash": "55FeLzZohwsp7kUyxGBRcHQJAVqRLsar6CQmZvK9ZdpM",
    "difficulty": "1.4607536548526529e-9",
    "stateRoot": "EpQv5Vrkisf1n9wgMH4Pec82i3FxcFhsiKi2WeKHohDf",
    "merkleRoot": "xyw95Bsby3s4mt6f4FmFDnFVpQBAeJxBFNGzu2cX4dM",
    "txs": [
        {
            "amount": "1.077076457",
            "hash": "BLDTEDhqbUaxftUQ4oZSVAPUj5qzBrBuQ37EMNQEES1m",
            "fee": "0.000001",
            "from": "H23fF8ktBWYwK7aHFbPSW52LtoHcbDvmT",
            "to": "H3ZHv2sLw7NhpDnJJVpJ85u2kmECJBZud",
            "estimated": "1.077077457",
            "receiveTime": 1541402086473
        },
        ...
    ],
    "height": "317713",
    "timeStamp": 1541402040765
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://teamhycon.gitbook.io/docs/api-v1-1/getting-blockchain-information/getting-block-info-at-a-specific-height.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
