I got the block hash from zmq.


I want to decode the above block hash. Could anyone tell me how to decode the above block hash?

2 Answers 2


What do you mean by "decode"?

A hash algorithm is a one-way function.

The hash-function takes some block header information (timestamp, nonce, a hash of all transactions) and returns such a hexadecimal value. There is no way to "decode" such a hash.

Its reason is just to identify a unique block (and deciding wheather someone gets the block reward or not). There are no other information stored in 00000000000000000045c639280aee532c5b12b03c80bfdec7aae674fd8246e0

But if you have the blockchain on your PC or if you enter the block hash at a block explorer, you can get information about that specific block: https://blockchain.info/block-index/1696955/00000000000000000045c639280aee532c5b12b03c80bfdec7aae674fd8246e0


I believe what merklexy wanted to know is how to get information about the block. And the answer is, you cannot get details about the block from its hash. If you have access to the bitcoin command line interface (bitcoin-cli) then you can simply execute

bitcoin-cli getblock 00000000000000000045c639280aee532c5b12b03c80bfdec7aae674fd8246e0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.