Get Block Hash

Retrieve the current block hash of the Bitcoin blockchain

Code samples


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

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

Responses

Response Schema

Status Code 200

Last updated