<h2>What do you mean by "decode"?</h2>

<p>A hash algorithm is a one-way function.</p>

<p>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.</p>

<p>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 <code>00000000000000000045c639280aee532c5b12b03c80bfdec7aae674fd8246e0</code></p>

<hr>

<p>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: <a href="https://blockchain.info/block-index/1696955/00000000000000000045c639280aee532c5b12b03c80bfdec7aae674fd8246e0" rel="nofollow noreferrer">https://blockchain.info/block-index/1696955/00000000000000000045c639280aee532c5b12b03c80bfdec7aae674fd8246e0</a></p>

CC BY-SA 4.0
2018-04-16T06:53:48.403Z
2019-01-08T08:01:48.680Z
2019-01-08T08:01:48.680Z
hardfork
<p>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</p>

<p><code>bitcoin-cli getblock 00000000000000000045c639280aee532c5b12b03c80bfdec7aae674fd8246e0</code></p>

CC BY-SA 4.0
2018-11-26T12:55:44.163Z
2018-11-26T12:55:44.163Z
Tobias Koller
<p>I got the block hash from zmq.</p>

<pre><code>00000000000000000045c639280aee532c5b12b03c80bfdec7aae674fd8246e0
</code></pre>

<p>I want to decode the above block hash. Could anyone tell me how to decode the above block hash?</p>

<bitcoind><block><block-hash><zeromq>
How to decode the block hash?
merklexy
# How to decode the block hash?

(Asked by: username_0 on 2018-04-16)

I got the block hash from zmq.
00000000000000000045c639280aee532c5b12b03c80bfdec7aae674fd8246e0

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

**Tags:** bitcoind, block, block-hash, zeromq


---

## 2 answers

### Answer by username_1 on 2018-04-16. Score: 3 | Accepted answer

## 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>


---

### Answer by username_2 on 2018-11-26. Score: 3

I believe what username_0 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`


---

