getblockheader
getblockheader "blockhash" ( verbose )
When verbose is set to false, it returns a serialized, hex-encoded string of data for the block header ‘hash’.
When verbose is set to true, it provides an object containing details about the block header ‘hash’.
Argument #1 – blockhash
Type: string, required
The block hash
Argument #2 – verbose
Type: boolean, optional, default=true
true for a json object, false for the hex-encoded data
Result (for verbose = true)
Result (for verbose=false)
Name |
Type |
Description |
---|---|---|
hex |
string |
A string that is serialized, hex-encoded data for block ‘hash’ |