Post
Topic
Board Announcements (Altcoins)
Re: NXT :: descendant of Bitcoin - Updated Information
by
marcus03
on 18/02/2014, 06:28:08 UTC
CfB,

Is there a definition of the bytes in a transaction? I am trying to figure out which ones are AM and which ones are not.
I thought maybe doing a getTransaction call would return what type of transaction it is, but it doesnt seem to.

Where can we get a reference on decoding the bytes of a getTransactionBytes API call?  And is there anyway to get the bytes for an entire block?  Id really like to learn more about the bits/bytes of NXT, can someone point me in the right direction as far as decoding the blockchain?

I don't know where this is in the Java code, but minusbalancer C# implementation has this here:

https://bitbucket.org/minusbalancer/dotnxt-core/src/13e9648c7cdba58cd8eef673375e117598d2dc34/Transaction.cs?at=master

Search for GetBytes() and you'll see how the different fields of a transaction make up the binary representation.