<p><a href="https://github.com/bitcoin/bips/blob/master/bip-0034.mediawiki" rel="nofollow noreferrer">https://github.com/bitcoin/bips/blob/master/bip-0034.mediawiki</a></p>

<blockquote>
  <p>Add height as the first item in the coinbase transaction's scriptSig, and increase block version to 2. The format of the height is "serialized CScript" -- first byte is number of bytes in the number (will be 0x03 on main net for the next 150 or so years with 223-1 blocks), following bytes are little-endian representation of the number (including a sign bit). Height is the height of the mined block in the block chain, where the genesis block is height zero (0).</p>
</blockquote>

CC BY-SA 3.0
2018-03-10T15:06:59.890Z
in this case, what should the part of the coinbase transaction look like now? example block 511824: ffffffff INDEX
55 LENGTH_COINBASE
03**50cf07**41d6a6ae79d8f62841d6a6ae79d8dba22f4254432e544f502ffabe6d6da64c1ef0a6cd6ffdecd9966246e336b366c8ba6ef07e9122485bb61b992bf61a8000000000000000fa00b68d1b3d000000000000 COINBASE (scriptsig)
ffffffff SEQUENCE,
where height block?
ivishnevskijmeander-groupru
CC BY-SA 3.0
2018-03-10T15:10:17.093Z
O, yes, i understund: 03 - ??? what is???                                                  
           50cf07(hex little endian) == 511824(dec)
ivishnevskijmeander-groupru
CC BY-SA 3.0
2018-03-10T15:34:28.243Z
okay, i'm little stupid)  **03** - length height block and **50cf07** is height block, after **0350cf07** next may come the any text in the range of 100 bytes? what is the encoding that will be deciphered on the sites as a coinbase? I want to write there **vbujym**
ivishnevskijmeander-groupru
CC BY-SA 3.0
2018-03-10T14:56:31.477Z
2018-03-10T14:56:31.477Z
Claris
<p>Can a coinbase transaction contain only data: 03 - length and 030303 - coinbase itself, or should the coinbase itself contain the height of the block?</p>

<coinbase-transaction>
Coinbase transaction data
ivishnevskijmeander-groupru
# Coinbase transaction data

(Asked by: username_0 on 2018-03-10)

Can a coinbase transaction contain only data: 03 - length and 030303 - coinbase itself, or should the coinbase itself contain the height of the block?

**Tags:** coinbase-transaction


---

## 1 answers

### Answer by username_1 on 2018-03-10. Score: 1

<https://github.com/bitcoin/bips/blob/master/bip-0034.mediawiki>

> Add height as the first item in the coinbase transaction's scriptSig, and increase block version to 2. The format of the height is "serialized CScript" -- first byte is number of bytes in the number (will be 0x03 on main net for the next 150 or so years with 223-1 blocks), following bytes are little-endian representation of the number (including a sign bit). Height is the height of the mined block in the block chain, where the genesis block is height zero (0).

> **Comments:**
> **username_0**: in this case, what should the part of the coinbase transaction look like now? example block 511824: ffffffff INDEX 55 LENGTH_COINBASE 03**50cf07**41d6a6ae79d8f62841d6a6ae79d8dba22f4254432e544f502ffabe6d6da64c1ef0a6cd6ffdecd9966246e336b366c8ba6ef07e9122485bb61b992bf61a8000000000000000fa00b68d1b3d000000000000 COINBASE (scriptsig) ffffffff SEQUENCE, where height block?  
> **username_0**: O, yes, i understund: 03 - ??? what is???                                                              50cf07(hex little endian) == 511824(dec)  
> **username_0**: okay, i'm little stupid)  **03** - length height block and **50cf07** is height block, after **0350cf07** next may come the any text in the range of 100 bytes? what is the encoding that will be deciphered on the sites as a coinbase? I want to write there **vbujym**  

---

