> For the complete documentation index, see [llms.txt](https://tna-btc.gitbook.io/tna-whitepaper-2/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tna-btc.gitbook.io/tna-whitepaper-2/developer-guide/developer-apis/data-availability/get-block-hash.md).

# Get Block Hash

### Retrieve the current block hash of the Bitcoin blockchain

> Code samples

```javascript

const headers = {
  'Accept':'application/json'
};

fetch('/bitcoin/current-block-hash',
{
  method: 'GET',

  headers: headers
})
.then(function(res) {
    return res.json();
}).then(function(body) {
    console.log(body);
});

```

`GET /bitcoin/current-block-hash`

> Example responses

> 200 Response

```json
{
  "code": 0,
  "message": "string",
  "data": {
    "hash": "string"
  }
}
```

#### Responses <a href="#get__bitcoin_current-block-hash-responses" id="get__bitcoin_current-block-hash-responses"></a>

| Status | Meaning                                                 | Description | Schema |
| ------ | ------------------------------------------------------- | ----------- | ------ |
| 200    | [OK](https://tools.ietf.org/html/rfc7231#section-6.3.1) | none        | Inline |

#### Response Schema <a href="#get__bitcoin_current-block-hash-responseschema" id="get__bitcoin_current-block-hash-responseschema"></a>

Status Code **200**

| Name      | Type           | Required | Restrictions | Description                                      |
| --------- | -------------- | -------- | ------------ | ------------------------------------------------ |
| » code    | integer(int)   | false    | none         | Error code                                       |
| » message | string(string) | false    | none         | Error message                                    |
| » data    | object         | false    | none         | Result data                                      |
| »» hash   | string(string) | false    | none         | The current block hash of the Bitcoin blockchain |
