Breaking down a raw transaction:

Breaking down a raw transaction:

Complete example:

0100000001186f9f998a5aa6f048e51dd8419a14d8a0f1a8a2836dd734d2804fe65fa35779000000008b483045022100884d142d86652a3f47ba4746ec719bbfbd040a570b1deccbb6498c75c4ae24cb02204b9f039ff08df09cbe9f6addac960298cad530a863ea8f53982c09db8f6e381301410484ecc0d46f1918b30928fa0e4ed99f16a0fb4fde0735e7ade8416ab9fe423cc5412336376789d172787ec3457eee41c04f4938de5cc17b4a10fa336a8d752adfffffffff0260e31600000000001976a914ab68025513c3dbd2f7b92a94e0581f5d50f654e788acd0ef8000000000001976a9147f9b1a7fb68d60c536c2fd8aeaa53a8f3cc025a888ac00000000

Breakdown:

Version (4-byte):

01000000

Number of inputs (variable size but in this case it is 1-byte):

01

Previous transaction ID byte swapped (32-byte):

186f9f998a5aa6f048e51dd8419a14d8a0f1a8a2836dd734d2804fe65fa35779

prev_out_index (4-byte):

00000000

scriptSig length (variable size but in this case it is 2-byte which represents 139-bytes for the following scrtiptSig):

8b

scriptSig (variable size but in this case it’s 139-byte):

483045022100884d142d86652a3f47ba4746ec719bbfbd040a570b1deccbb6498c75c4ae24cb02204b9f039ff08df09cbe9f6addac960298cad530a863ea8f53982c09db8f6e381301410484ecc0d46f1918b30928fa0e4ed99f16a0fb4fde0735e7ade8416ab9fe423cc5412336376789d172787ec3457eee41c04f4938de5cc17b4a10fa336a8d752adf

Sequence number: (4-byte):

ffffffff

Don’t know what this is:

02

Value to send (8-byte byte-swapped):

60e3160000000000

Output 1 – Receiving address for amount above:

19 76 a9 14ab68025513c3dbd2f7b92a94e0581f5d50f654e7 88 ac

Value for change (8-byte byte-swapped)

d0ef800000000000

Output 2- Change address for amount above:

19 76 a9 147f9b1a7fb68d60c536c2fd8aeaa53a8f3cc025a8 88 ac

LockTime (4-byte):

00000000

Question:

The bit where I wrote Don’t know what this is, which has the value 02. I don't know what the purpose of that value is. What's the purpose of that value?

https://ift.tt/2rXLOLR

Comments

  1. can you break down this transaction please im getting confuse in this transaction

    010000000001012a3ccf2dd7f01851bd61e78784189e52ea9f932b337af398c741662c694ae5e60500000023220020b0fcc0caed77aeba9786f39920151162dfaf90e679aafab7a71e9b978e7d3f39ffffffff0280f0fa02000000001976a91431d85fe7a7210975c9ccebf305198356eeaebd6588ac88e165040000000017a914b8a9a8ba8cf965b7df6b05afd948e53c351b2c0d870400473044022060bed11ba464cd2d83aae8510b2874edb07a5fcf29fad1d38b6ec65cdacba9890220544bd746e30096b04bce1ae0b15b6d38a7b77b1177f8e755339aa00d3e9602710147304402202d0b6eb50c9da195661d9c1a45565472bb979a04702966c3cbf030a7a52a99b0022008302c53eb895ff73ff6c9d01fca6d700ae0722fdd2ee3eaedd5896470792e3b01010200000000

    ReplyDelete

Post a Comment

Popular posts from this blog

sendrawtransaction and txn-mempool-conflict

couldn't connect to server: EOF reached (code 1)