<p>The <code>value</code> of an output in a transaction is a <code>8-byte</code> field encoded in <code>little-endian</code>. The value is always represented with <code>8 bytes</code> no matter how small it is. Here you have the full transaction structure with sizes:</p>

<p><a href="https://i.sstatic.net/BbgRp.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/BbgRp.png" alt="enter image description here"></a></p>

CC BY-SA 4.0
2018-05-09T11:48:42.003Z
2018-05-09T11:48:42.003Z
sr_gi
<p>From the hex generated by the <code>createrawtransaction</code> command, I understand that the following is the output value:</p>

<blockquote>
  <p>60e316<strong>0000000000</strong>1976a914ab68025513c3dbd2f7b92a94e0581f5d50f654e788acd0ef80<strong>0000000000</strong>1976a9147f9b1a7fb68d60c536c2fd8aeaa53a8f3cc025a888ac</p>
</blockquote>

<p>Output one - Receiver address details:</p>

<blockquote>
  <p>60e316<strong>0000000000</strong>1976a914ab68025513c3dbd2f7b92a94e0581f5d50f654e788ac</p>
</blockquote>

<p>Output two - Change address details:</p>

<blockquote>
  <p>d0ef80<strong>0000000000</strong>1976a9147f9b1a7fb68d60c536c2fd8aeaa53a8f3cc025a888ac</p>
</blockquote>

<p>My question is regarding the highlighted 0 values, as in the 0x00 hex values.  I understand these are empty arrays, but why 5 bytes worth?  Is this some sort of padding for the maximum allowed satoshi's which can be sent?  Or are these for some other purpose?</p>

<script><raw-transaction><output><createrawtransaction>
Why do I get 5 bytes worth of 0x00 hex values in both outputs?
oshirowanen
# Why do I get 5 bytes worth of 0x00 hex values in both outputs?

(Asked by: username_0 on 2018-05-09)

From the hex generated by the `createrawtransaction` command, I understand that the following is the output value:

> 60e316**0000000000**1976a914ab68025513c3dbd2f7b92a94e0581f5d50f654e788acd0ef80**0000000000**1976a9147f9b1a7fb68d60c536c2fd8aeaa53a8f3cc025a888ac

Output one - Receiver address details:

> 60e316**0000000000**1976a914ab68025513c3dbd2f7b92a94e0581f5d50f654e788ac

Output two - Change address details:

> d0ef80**0000000000**1976a9147f9b1a7fb68d60c536c2fd8aeaa53a8f3cc025a888ac

My question is regarding the highlighted 0 values, as in the 0x00 hex values. I understand these are empty arrays, but why 5 bytes worth? Is this some sort of padding for the maximum allowed satoshi's which can be sent? Or are these for some other purpose?

**Tags:** script, raw-transaction, output, createrawtransaction


---

## 1 answers

### Answer by username_1 on 2018-05-09. Score: 2 | Accepted answer

The `value` of an output in a transaction is a `8-byte` field encoded in `little-endian`. The value is always represented with `8 bytes` no matter how small it is. Here you have the full transaction structure with sizes:

[![enter image description here](https://i.sstatic.net/BbgRp.png)](https://i.sstatic.net/BbgRp.png)


---

