> 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/block-api/untitled-1/response-specified-block.md).

# Response (specified block)

#### Response (specified block) `200 OK, application/json` <a href="#response-specified-block-200-ok-applicationjson" id="response-specified-block-200-ok-applicationjson"></a>

If `range` is not set or set to 1, the following object is returned. Else, a block list with the following objects as elements is returned:

| Parameter        | Type   | Description                                   |
| ---------------- | ------ | --------------------------------------------- |
| **height**       | number | Height of the block.                          |
| **hash**         | string | Hash value representing the block.            |
| **difficulty**   | string | Difficulty of the mined block.                |
| **merkleRoot**   | string | Merkle hash of all transactions in the block. |
| **stateRoot**    | string | Hash of the world state at that block.        |
| **timestamp**    | number | Timestamp when the block was added.           |
| **txs**          | array  | List of transactions in the block.            |
| **nonce**        | string | Nonce of the block.                           |
| **miner**        | string | A Hycon wallet address of the miner.          |
| **uncleHash**    | array  | List of hash values of uncle block.           |
| **previousHash** | string | The hash value of the previous block.         |

**Response Error Table**

| Status | Error         | Message                                                               |
| ------ | ------------- | --------------------------------------------------------------------- |
| 400    | `BAD_REQUEST` | the absolute value of range cannot exceed 100                         |
| 404    | `NOT_FOUND`   | Error: hash 5PrvewZUb3BizCEqibi1URv9WBssAdFqsa95weL4rTpj is not found |

**Response (Success) without specified range**

```
{
    "height": 412510,
    "hash": "6ZDkzCeih26nQ6ry84FhvJackNpRgKGKmFCrhvQsdfMf",
    "difficulty": "2.2465660159450127e-9",
    "merkleRoot": "8FKVTsPMMfgjp7tWZLgmrodcFPy8PcVMMc9r3fPdvu5p",
    "stateRoot": "DVuavQUzM2GTD7D43n83vDm1TDnb5r6dVc2UDNZbdJon",
    "timestamp": 1543462655832,
    "txs": [
        {
            "amount": "28.312759446",
            "to": "H3mt6xb2evbvJ5m58181t2hjQxrhE6gFz",
            "txhash": "4qpzsvd9YtZAtU7UWnByN8JTfbkYHrGd2PjZ9pQNepTj",
            "fee": "0.000001",
            "from": "H23fF8ktBWYwK7aHFbPSW52LtoHcbDvmT",
            "nonce": 2667656
        },
        ...
    ],
    "nonce": "16769771563250614862",
    "miner": "H23fF8ktBWYwK7aHFbPSW52LtoHcbDvmT",
    "uncleHash": [
        "7ZY6RZGxLeBnzenpYL6m8x1F1sq3umsyW5ZEry3d1D8o"
    ],
    "previousHash": "3ZPBmRgzt3sN1QqvbArfvDG465b47FUR7bPvRwtnxWbS"
}
```

**Response (Success) with specified range**

```
[
    {
        "height": 406079,
        "hash": "FW9tKvn9qGqCoBXo7gsrSZJXPYHMqV4iGwqu8M5peZqp",
        "difficulty": "2.209114884696341e-9",
        "merkleRoot": "xyw95Bsby3s4mt6f4FmFDnFVpQBAeJxBFNGzu2cX4dM",
        "stateRoot": "GtQepoj5ug8aTTsHqnZV6si4ej3pLhE81XTRRgA2gbiv",
        "timestamp": 1543323156188,
        "txs": [ ],
        "nonce": "9223385724915548540",
        "miner": "H23fF8ktBWYwK7aHFbPSW52LtoHcbDvmT",
        "uncleHash": [ ],
        "previousHash": "4jBSmugyJcsPwF635kxwYmApSxvzk27xtaLPjiefpU7H"
    },
    ...
]
```


---

# 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/block-api/untitled-1/response-specified-block.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.
