Bitcoin Forum
May 12, 2024, 07:20:06 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Manually decoded transaction  (Read 588 times)
mb300sd (OP)
Legendary
*
Offline Offline

Activity: 1260
Merit: 1000

Drunk Posts


View Profile WWW
February 06, 2013, 05: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

1D7FJWRzeKa4SLmTznd3JpeNU13L1ErEco
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!