6

Must a block contain a coinbase transaction? If so, how is this enforced?

Murch
  • 75,206
  • 34
  • 186
  • 622
Kinnard Hockenhull
  • 2,443
  • 3
  • 26
  • 36

2 Answers2

7

Yes, it must.

Block without coinbase transaction will be rejected by network.

From the Protocol, rule #6:

First transaction must be coinbase (i.e. only 1 input, with hash=0, n=-1), the rest must not be

Mathias711
  • 1,426
  • 1
  • 13
  • 27
amaclin
  • 6,760
  • 1
  • 21
  • 32
5

Every block must include one or more transactions. The first one of these transactions must be a coinbase transaction which should collect and spend the block reward and any transaction fees paid by transactions included in this block.

Bitcoin Foundation Developer Guide— https://bitcoin.org/en/developer-guide#transaction-data

Mathias711
  • 1,426
  • 1
  • 13
  • 27
Kinnard Hockenhull
  • 2,443
  • 3
  • 26
  • 36