Bitcoin Transaction

Next topic
A visual demo of Bitcoin Transaction by simulating coin transfer and composing a raw transaction
Alice's wallet









Raw Transaction
01000000017ffb2ed215699fde11d4a0ac2ac13ac4f09e7d2d445e74c3454e4dd9eb8f974c000000006a4730440220477598493ad5a08429c17b3df69fe80da8d217526bc672bf478ce4b87682c95e022072d0cd2872ffd444bb4c7c9dcee468070cf8dccf0c3d78efbb0b882f0cfa6d080121039edfdaf120284e490fbefee126504910d613628b2417c7ffa42de3b7f4020316ffffffff02ec5e0000000000001976a9140964c6feb963ade6836e722670abbc0147ca5cec88ac204e0000000000001976a914db8fe924846c8e1e1b2ba802c7d34273b136b08288ac00000000
Bob's wallet
view
This amount was sent by Alice
Transaction
0.0002 BTC
 
view
Misc.
Chris's wallet
Raw Transaction Fields
FieldSizeData formatData value
Version4 bytesdecimal1
hex00000001
reverse (LE)01000000
Input CountVarIntdec1
VarInt (hex-LE)01
Prev TX Hash32 byteshex4c978febd94d4e45c3745e442d7d9ef0c43ac12aaca0d411de9f6915d22efb7f
reverse (LE)7ffb2ed215699fde11d4a0ac2ac13ac4f09e7d2d445e74c3454e4dd9eb8f974c
Prev Output Index4 bytesdecimal0
hex00000000
reverse (LE)00000000
sigScript LengthVarIntdecimal106
VarInt (hex-LE)6a
sigScript-Sig LengthVarIntdecimal71
VarInt (hex-LE)47
sigScript-Sighex30440220477598493ad5a08429c17b3df69fe80da8d217526bc672bf478ce4b87682c95e022072d0cd2872ffd444bb4c7c9dcee468070cf8dccf0c3d78efbb0b882f0cfa6d0801
sigScript-pubKey LengthVarIntdecimal33
VarInt (hex-LE)21
sigScript-pubKeyhex039edfdaf120284e490fbefee126504910d613628b2417c7ffa42de3b7f4020316
Sequence4 byteshexffffffff
Output countVarIntdecimal2
VarInt (hex-LE)02
Value8 bytesBTC0.000243
Satoshi24300
hex0000000000005eec
reverse (LE)ec5e000000000000
pubKeyScript LengthVarIntdecimal25
VarInt (hex-LE)19
sigScript-pubKeyhex76a9140964c6feb963ade6836e722670abbc0147ca5cec88ac
Value8 bytesBTC0.0002
Satoshi20000
hex0000000000004e20
reverse (LE)204e000000000000
pubKeyScript LengthVarIntdecimal25
VarInt (hex-LE)19
sigScript-pubKeyhex76a914db8fe924846c8e1e1b2ba802c7d34273b136b08288ac
Lock Time4 byteshex00000000