Must a Block contain a coinbase transaction?

5

1

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

Kinnard Hockenhull

Posted 2014-09-02T03:56:27.663

Reputation: 2 285

related: What is the coinbase?

Murch 2015-11-07T15:02:07.420

Answers

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

Kinnard Hockenhull

Posted 2014-09-02T03:56:27.663

Reputation: 2 285

6

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

amaclin

Posted 2014-09-02T03:56:27.663

Reputation: 5 763

The coinbase transaction is important as the mark of bitcoin generation. But what would it be for when the last bitcoin were mined?Henrique Barcelos 2016-01-28T13:36:21.110