1

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)

1
  • @NickODell I tried that, if I interpret it as a 64 bit big endian I get 15861034, as little endian I get 705032704 Commented Sep 5, 2015 at 19:28

1 Answer 1

0

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
1
  • Thanks, I was using Java's .getInt() rather than .getLong() Commented Sep 7, 2015 at 8:38

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.