# Get Block Height

### Retrieve the current height of the Bitcoin blockchain

> Code samples

```javascript

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

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

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

```

`GET /bitcoin/current-height`

> Example responses

> 200 Response

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

#### Responses <a href="#get__bitcoin_current-height-responses" id="get__bitcoin_current-height-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-height-responseschema" id="get__bitcoin_current-height-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                                  |
| »» height | integer(int)   | false    | none         | The current height of the Bitcoin blockchain |
