Get Block Height

Retrieve the current height of the Bitcoin blockchain

Code samples


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

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

Responses

Response Schema

Status Code 200

Last updated