<p>The coinbase value in GetBlockTemplate is the coinbase value which will be used in the coinbase transaction of the produced block.  As such it includes the sum of transaction fees plus the current subsidy (25 BTC at the time of writing).</p>

<p>If building the coinbase by hand one thing to consider is that the coinbase check in Bitcoin is "loose".  For a block to be valid, the value of the coinbase can not be <strong>more than</strong> the computed subsidy plus transaction fees.  It can however be any smaller value including zero.  This was likely an oversight by Satoshi but it has led to some blocks being minted with a smaller than allowed coinbase.  This results in coins being permanently destroyed.</p>

CC BY-SA 3.0
2014-03-04T14:31:26.897Z
2014-03-04T14:31:26.897Z
DeathAndTaxes
<p>Judging from the output of a GBT call to bitcoind  (2505616072), it must include fees.</p>

CC BY-SA 3.0
2014-02-27T11:02:14.347Z
2014-02-27T11:02:14.347Z
Pieter Wuille
<p><a href="https://github.com/bitcoin/bips/blob/master/bip-0022.mediawiki" rel="nofollow">BIP 22</a> doesn't seem to specify... Pretty important if you're building a coinbase by hand.</p>

<json-rpc>
Doest 'coinbasevalue' in GBT call include fees, or just the total block value?
whoknows
# Doest 'coinbasevalue' in GBT call include fees, or just the total block value?

(Asked by: username_0 on 2014-02-26)

[BIP 22](https://github.com/bitcoin/bips/blob/master/bip-0022.mediawiki) doesn't seem to specify... Pretty important if you're building a coinbase by hand.

**Tags:** json-rpc


---

## 2 answers

### Answer by username_1 on 2014-03-04. Score: 0 | Accepted answer

The coinbase value in GetBlockTemplate is the coinbase value which will be used in the coinbase transaction of the produced block. As such it includes the sum of transaction fees plus the current subsidy (25 BTC at the time of writing).

If building the coinbase by hand one thing to consider is that the coinbase check in Bitcoin is "loose". For a block to be valid, the value of the coinbase can not be **more than** the computed subsidy plus transaction fees. It can however be any smaller value including zero. This was likely an oversight by Satoshi but it has led to some blocks being minted with a smaller than allowed coinbase. This results in coins being permanently destroyed.


---

### Answer by username_2 on 2014-02-27. Score: 1

Judging from the output of a GBT call to bitcoind (2505616072), it must include fees.


---

