Author

Topic: Manually decoded transaction (Read 606 times)

legendary
Activity: 1260
Merit: 1000
Drunk Posts
February 06, 2013, 12:55:42 AM
#1
Did this while studying exactly how transactions are constructed. I looked for something similar before but never found anything, so this might be useful to someone...

transaction was generated using command:

Code:
bitcoind createrawtransaction '[{"txid":"6fe28c0ab6f1b372c1a6a246ae63f74f931e8365e15a089c68d6190000000000","vout":0}]' '{"1NzL1Lj8mC9QSCZUzqHAP89bvHT9VA4ebS":1}'

tx:

Code:
0100000001000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f0000000000ffffffff0100e1f505000000001976a914f1323771a136b13e8d803149fc6d337a79dedac888ac00000000

manually decoded using
https://en.bitcoin.it/wiki/Transactions
and
https://en.bitcoin.it/wiki/Script

Code:
Version no
01 00 00 00
In-counter
01
list of inputs
prev tx hash (endian reversed)
000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f
prev txout-index
00 00 00 00
txin-script len
00
txin-script
-
sequence_no
ff ff ff ff
Out-counter
01
list of outputs
value
00 e1 f5 05 00 00 00 00
txout-script len
19
txout-script
OP_DUP
76
OP_HASH160
a9
PUSH 20 bytes
14
DATA
f1323771a136b13e8d803149fc6d337a79dedac8
OP_EQUALVERIFY
88
OP_CHECKSIG
ac
lock_time
00 00 00 00
Jump to: