getblockheader

Returns an Object with information about blockheader ‘hash’.

Parameters

hash (string) - The block hash

Example

// Request
curl -u username:password -H "Content-Type: application/json" -d '{"id":1, "jsonrpc":"2.0", "method": "getblockheader","params": ["00000000000000000751574c8b9a5a948548806b2eabce7d8ba885c3e5eb0418"]}' http://<your-app-id>.ankr.com
// Result
{
"jsonrpc": "2.0",
"result": {
"hash": "00000000000000000751574c8b9a5a948548806b2eabce7d8ba885c3e5eb0418",
"confirmations": 3246,
"version": 7,
"merkleroot": "7a8f0714b88ffcc432deca7045121ecb771ca825f6f5918917d842d87144b4c4",
"stakeroot": "bd5dcd74654071d1a76c80eea805a20b2d2a9f3f060ef4f789520001011ae44f",
"votebits": 1,
"finalstate": "e23db850b119",
"voters": 5,
"freshstake": 2,
"revocations": 0,
"poolsize": 41295,
"bits": "183324fa",
"sbits": 143.02837843,
"height": 449139,
"size": 5380,
"time": 1589382052,
"nonce": 260191562,
"extradata": "0187de0716d50600000000000000000000000000000000000000000000000000",
"stakeversion": 7,
"difficulty": 21497837439.77125,
"chainwork": "0000000000000000000000000000000000000000000ffd6d140a720cc05668dc",
"previousblockhash": "000000000000000012d565fa322b58507996fc7f2c289175f63f42a6982e245c",
"nextblockhash": "0000000000000000106eeabc86f8430236379a787a7a8b6ba8bb3fbab0cca1af"
},
"error": null,
"id": 1
}