2

I want to find the POW hashes of each block, which start with or end with many zeros.

This answer showed an example of the POW hash.

I tried many blockchain explorers and didn't find any one with POW hashes.

Is there an easy way to find the POW hashes, like a blockchain explorer or some python script?

zzh1996
  • 121
  • 2

1 Answers1

1

To find the PoW hash of a block, you perform two steps:

  • get the hashing blob for that block (get_block_hashing_blob in the Monero source), which is built by serializing the block, and appending the number of transactions in that block as well as the root of the Merkle tree
  • run Cryptonight (cn_slow_hash in the Monero source) on this blob

If you just want to lookup the PoW hash of a particular block, you can use the print_block command in monerod, giving either a height or a block hash, eg:

print_block 87493

user36303
  • 34,928
  • 2
  • 58
  • 123