<p>The transaction format was never altered in the clone Tenebrix or its clone Litecoin. The bytes you have posted are correct, and do indeed decode to 50 BTC when read out as an unsigned, little endian, 64 bit integer.</p>

<pre><code>~&gt; python
&gt;&gt;&gt; import struct
&gt;&gt;&gt; struct.unpack("&lt;q","\x00\xF2\x05\x2A\x01\x00\x00\x00")[0]
5000000000
</code></pre>

CC BY-SA 3.0
2015-09-07T08:38:59.793Z
Thanks, I was using Java's .getInt() rather than .getLong()
Zack Newsham
CC BY-SA 3.0
2015-09-05T22:07:03.840Z
2015-09-05T22:13:18.623Z
2015-09-05T22:13:18.623Z
Claris
<p>Feeling a little silly here, I can decode the entire rest of the data in the blockchain, but the "value" field of a transaction output makes no sense.</p>

<pre><code>[0,-14,5,42,1,0,0,0] 
</code></pre>

<p>This decodes to "50.00000000" but I can't see how.</p>

<p>The remainder of the block decodes correctly, so I am fairly sure I'm looking at the right data. It doesnt seem to be in the same format as the bitcoin value (/10^8)</p>

CC BY-SA 3.0
2015-09-05T19:28:42.763Z
@NickODell I tried that, if I interpret it as a 64 bit big endian I get `15861034`, as little endian I get `705032704`
Zack Newsham
<litecoin>
What is the format of the value of a transaction in the litecoin ledger
Zack Newsham
# What is the format of the value of a transaction in the litecoin ledger

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

Feeling a little silly here, I can decode the entire rest of the data in the blockchain, but the "value" field of a transaction output makes no sense.

```
[0,-14,5,42,1,0,0,0] 

```

This decodes to "50.00000000" but I can't see how.

The remainder of the block decodes correctly, so I am fairly sure I'm looking at the right data. It doesnt seem to be in the same format as the bitcoin value (/10^8)

**Tags:** litecoin

> **Comments:**
> **username_0**: @NickODell I tried that, if I interpret it as a 64 bit big endian I get `15861034`, as little endian I get `705032704`  

---

## 1 answers

### Answer by username_1 on 2015-09-05. Score: 0 | Accepted answer

The transaction format was never altered in the clone Tenebrix or its clone Litecoin. The bytes you have posted are correct, and do indeed decode to 50 BTC when read out as an unsigned, little endian, 64 bit integer.

```
~> python
>>> import struct
>>> struct.unpack("<q","\x00\xF2\x05\x2A\x01\x00\x00\x00")[0]
5000000000

```

> **Comments:**
> **username_0**: Thanks, I was using Java's .getInt() rather than .getLong()  

---

