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
Status
Meaning
Description
Schema
Response Schema
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
Last updated