I am attempting to decode a Block and have managed to decode the Coinbase transaction but after the transaction, there is huge gaps in them that I do not understand.
Taking this Block as a sample: 0000000000000000002e5b55bf93c89cc3a41de24d762fa4f68e725da3b089ba
Here is my attempt to decode this block:
===== Block Begin =====
00000020 - Transaction Version
15F11A82BE84CCCAF4E59CFC0C89EF01CAD854DC15F33D000000000000000000 - Block Hash
CC2DCEAF96439181993C564CBE889F60FDB98E8EFD4E524D9EEA3C54CF400504 - Merkle Root
2BDF8F5A - Timestamp
DC975D17 - Bits
3E2A4065 - Nonce
FD8704 - Total Transaction
01000000 - Transaction Version
01 - Coinbase has 1 transaction
===== Coinbase Begin =====
0000000000000000000000000000000000000000000000000000000000000000 - coinbase hash
FFFFFFFF - index
45 - txin script length (69)
-> 03 - bytes in height
-> 43CA07FA - height
-> BE6D6DCAEEFE495F6BCA08E10FF6D24555166C2456D8129213354E32FD73EB1B141AB00100000000000000036507000F312D7B080100275C012F736C7573682F - txin
00000000 - sequence
03 - 3 output in coinbase
AA5CB94C00000000 - output satoshis from coinbase
19 - Coinbase Output Script Length (25)
76 - OP_DUP
A9 - OP_HASH160
14 - 20 bytes
7C154ED1DC59609E3D26ABB2DF2EA3D587CD8C41 - hash data
88 - OP_EQUALVERIFY
AC - OP_CHECKSIG
00000000 - Lock Time
===== Coinbase End =====
000000002C6A4C2952534B424C4F434B3AA5BA6C5D1EFFA2034E994BEEE65C619DE2D2A1 - outpoint ?
B91892F193C170CAB74F152EAE0000000000000000266A24AA21A9ED85F7D06CCF8014D990E0242ACC0433EAF134732094E9A083A45AC3799259C9170000000001000000014FFBE86D2805AF78459BBF5FA3432A5E9C84D408F7921BF2095488B9DDC39D33 - ?
02000000 - Tx Version
6B - TxIn SigScript Length (107)
48 - TxIn SigScript Length (72)
3045022100FAD6F0A91A89A90D17800B55B1B1E424338BFB5D72D3970ED95310AFEB4734A50220120B24AF1444E520EB77ECE73DB6D9775159220B089D28948BC9DBC156C2492F01 - TxIn SigScript
21 - TxIn SigScript Length (33)
02227CEDFAB55D1B7642D47A5AC92638ED8822A23C3DDADF88DEFEA45A37F5935E - TxIn SigScript
FFFFFFFF - TxIn Sequence
02 - TxOut Count
F0874B0000000000 - Satoshis (BTC 0.0495)
17 - Length (23)
A9 - OP_HASH160
14 - 20 bytes
98808E526D3737F044F2DD5445A27DB39BAD821D - hash data
87 - OP_EQUAL
92F6E73600000000 - Satoshis (BTC 9.21171602)
19 - Length (25)
76 - OP_DUP
A9 - OP_HASH160
14 - 20 bytes
B08F46E4D21CD0547A8A1E2E43E5440284F710A4
88 - OP_EQUALVERIFY
AC - OP_CHECKSIG
00000000 - Lock Time
=====================
01000000 - ?
01 - ?
DE74875C17CE6730AF727B52913FAB9FF7922BBA806932785A824A8CAA649E8D0100000000FFFFFFFF02D5C267130000000017A91433A9DB4ED408225EFE4B00DC55F962B52E8769B987A7C6D10200000000220020701A8D401C84FB13E6BAF169D59684E1 ... more data ...
It seems like after I have decoded the Coinbase transaction, the first proper transaction after the Coinbase, I hit a problem trying to resolve:
000000002C6A4C2952534B424C4F434B3AA5BA6C5D1EFFA2034E994BEEE65C619DE2D2A1B91892F193C170CAB74F152EAE0000000000000000266A24AA21A9ED85F7D06CCF8014D990E0242ACC0433EAF134732094E9A083A45AC3799259C9170000000001000000014FFBE86D2805AF78459BBF5FA3432A5E9C84D408F7921BF2095488B9DDC39D33
Only after that point, does the data look abit more familiar with the 02000000 which I have guessed is the Tx Version followed by what seems to be TxIn Script data and so on.
I would like some help to understand how to decode the Block as this is only that far I can guess after reading the Bitcoin documentations found online which are not documented in a uniformed and easy to ready manner.
Thanks for the help in advance.