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

<p>All other integers are little-endian.</p>

CC BY-SA 3.0
2011-11-25T23:33:00.773Z
2011-11-26T09:09:17.537Z
2011-11-26T09:09:17.537Z
theymos
<p>Recently I'm trying to <a href="https://bitcointalk.org/index.php?topic=52706.0" rel="nofollow">properly recreate the genesis block in my low-level application</a>. To do this, I use <a href="http://blockexplorer.com/rawblock/000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f" rel="nofollow">the Block Explorer to get the proper values for different fields</a>, 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?</p>

<protocol><websites><raw-data>
Block Explorer, which fields are reversed, and which are the same as in a raw block dump?
ThePiachu
# Block Explorer, which fields are reversed, and which are the same as in a raw block dump?

(Asked by: username_0 on 2011-11-25)

Recently I'm trying to [properly recreate the genesis block in my low-level application](https://bitcointalk.org/index.php?topic=52706.0). To do this, I use [the Block Explorer to get the proper values for different fields](http://blockexplorer.com/rawblock/000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f), 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?

**Tags:** protocol, websites, raw-data


---

## 1 answers

### Answer by username_1 on 2011-11-25. Score: 2 | Accepted answer

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.


---

