Recently I'm trying to properly recreate the genesis block in my low-level application. To do this, I use the Block Explorer to get the proper values for different fields, but at times it can be very confusing with its endianness. Which fields presented in the Block Explorer should be reversed before they are included in a raw block, and which should stay as they are?

1 Answer 1


Hashes are displayed in little-endian when they are actually big-endian on the network, and difficulty bits are displayed as big-endian when they are actually little-endian on the network.

All other integers are little-endian.

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.