<p>The coinbase value in that comparison is the sum of the amounts of the outputs of the first transaction (coinbase) in the block</p>
<p><sub>(community wiki answer, to avoid having unanswered questions with answers in comments floating around and occasionally getting bumped to the homepage)</sub></p>

CC BY-SA 4.0
2020-12-01T18:39:20.510Z
2020-12-01T18:39:20.510Z
RedGrittyBrick
<p>Under the bitcoin Protocol rules here:
<a href="https://en.bitcoin.it/wiki/Protocol_rules#Transactions" rel="nofollow noreferrer">https://en.bitcoin.it/wiki/Protocol_rules#Transactions</a></p>
<p>in the <a href="https://en.bitcoin.it/wiki/Protocol_rules#.22block.22_messages" rel="nofollow noreferrer">&quot;block&quot; messages section</a>
There is the pseudo-algorithm for validating a given block.</p>
<p>On Point 16-2 It says:</p>
<p>&quot;Reject if coinbase value &gt; sum of block creation fee and transaction fees&quot;</p>
<p>If we keep it simple,</p>
<ul>
<li><p>I know that the block creation fee is calculated using 64 bit integer operations (in satoshis) as:</p>
<p>(50 * 100000000) &gt;&gt; (height / 210000)</p>
</li>
<li><p>And I also know that transaction fees are defined as:</p>
<p>the sum of input values minus sum of output values for a given transaction.</p>
</li>
</ul>
<p>So the overall transaction fees on a block would be the total sum of all transaction fees in that block.</p>
<p>But how do I 'calculate' in pseudo-words, the <strong>coinbase value</strong> and what is it referring to?</p>
<p>I seem to not understand something here...</p>
<p>Thanks in advance</p>

CC BY-SA 4.0
2020-12-01T14:47:33.137Z
Isn't the coinbase value in that comparison the value of the outputs of the first transaction (coinbase) in the block?
RedGrittyBrick
CC BY-SA 4.0
2020-12-01T15:23:07.987Z
Yeah, it's the sum of the output amounts of the coinbase transaction (first transaction in a block).
Pieter Wuille
CC BY-SA 4.0
2020-12-01T16:24:14.653Z
Thanks for the clarification! cheers
DigitalJedi
<coinbase-transaction><value>
What`s a blocks coinbase value?
DigitalJedi
# What`s a blocks coinbase value?

(Asked by: username_0 on 2020-12-01)

Under the bitcoin Protocol rules here:
<https://en.bitcoin.it/wiki/Protocol_rules#Transactions>

in the ["block" messages section](https://en.bitcoin.it/wiki/Protocol_rules#.22block.22_messages)
There is the pseudo-algorithm for validating a given block.

On Point 16-2 It says:

"Reject if coinbase value > sum of block creation fee and transaction fees"

If we keep it simple,

* I know that the block creation fee is calculated using 64 bit integer operations (in satoshis) as:

  (50 \* 100000000) >> (height / 210000)
* And I also know that transaction fees are defined as:

  the sum of input values minus sum of output values for a given transaction.

So the overall transaction fees on a block would be the total sum of all transaction fees in that block.

But how do I 'calculate' in pseudo-words, the **coinbase value** and what is it referring to?

I seem to not understand something here...

Thanks in advance

**Tags:** coinbase-transaction, value

> **Comments:**
> **username_1**: Isn't the coinbase value in that comparison the value of the outputs of the first transaction (coinbase) in the block?  
> **username_2**: Yeah, it's the sum of the output amounts of the coinbase transaction (first transaction in a block).  
> **username_0**: Thanks for the clarification! cheers  

---

## 1 answers

### Answer by username_1 on 2020-12-01. Score: 2 | Accepted answer

The coinbase value in that comparison is the sum of the amounts of the outputs of the first transaction (coinbase) in the block

(community wiki answer, to avoid having unanswered questions with answers in comments floating around and occasionally getting bumped to the homepage)


---

