# Get block hash

Retrieves a Bitcoin block hash for a given block height.

This method will use `10` [Compute Units](https://docs.validationcloud.io/v1/about/billing).

***

## **Reference:** [**Here**](https://github.com/trezor/blockbook/blob/master/docs/api.md#get-block-hash)

```bash
GET /api/v2/block-index/<block height>
```

## **Parameters**

**`block height`**- string, required.&#x20;

Example: `785365`

## Returns

```json
{
  "blockHash": "00000000000000000004a49543c0b6e2043e67b513c0d9100fbdf91f662c3ad1"
}
```

{% tabs %}
{% tab title="mainnet" %}

```bash
curl https://mainnet.bitcoin.validationcloud.io/v1/<YOUR_API_KEY_HERE>/api/v2/block-index/785365 \
 -X GET \
 -H "Content-Type: application/json"
```

{% endtab %}

{% tab title="testnet" %}

```bash
curl https://testnet.bitcoin.validationcloud.io/v1/<YOUR_API_KEY_HERE>/api/v2/block-index/785365 \
 -X GET \
 -H "Content-Type: application/json"
```

{% endtab %}
{% endtabs %}
