<p>In the same special "generation transaction" that collects the 25 newly minted bitcoins, the miner also collects the total of all the transaction fees in the block, and together can send them to an address(es) of his choosing.</p>

<p>No signature is required; it's a hardcoded perk to whoever manages to find a block.</p>

CC BY-SA 3.0
2014-08-08T00:27:30.950Z
Essentially, when determining if a block is valid, a check is done. The coinbase transaction to reward the miner may not claim more than the block reward plus the difference between the bitcoins in and the bitcoins out.
David Schwartz
CC BY-SA 3.0
2014-08-06T19:27:19.563Z
2014-08-06T19:27:19.563Z
Meni Rosenfeld
<p>The way I understand it,  at the very top of the block the miner adds a transaction to collect the 25 bitcoins it would earn if it solves the block.</p>

<p>Obviously that transaction is included in the hash/nonce when the block is solved.</p>

<p>But what about the fees? the only way I see it done is for the miner to also create transactions for each of the fees it finds in the block.</p>

<p>All these "fragments" have to be traced to some source/input address.</p>

<p>Q: How can the miner sign a fee transaction for itself if the miner's address is not the input of the transaction?</p>

<transaction-fees><mining-reward><coinbase-transaction>
How does a miner collects the fees?
user2223142
# How does a miner collects the fees?

(Asked by: username_0 on 2014-08-06)

The way I understand it, at the very top of the block the miner adds a transaction to collect the 25 bitcoins it would earn if it solves the block.

Obviously that transaction is included in the hash/nonce when the block is solved.

But what about the fees? the only way I see it done is for the miner to also create transactions for each of the fees it finds in the block.

All these "fragments" have to be traced to some source/input address.

Q: How can the miner sign a fee transaction for itself if the miner's address is not the input of the transaction?

**Tags:** transaction-fees, mining-reward, coinbase-transaction


---

## 1 answers

### Answer by username_1 on 2014-08-06. Score: 6

In the same special "generation transaction" that collects the 25 newly minted bitcoins, the miner also collects the total of all the transaction fees in the block, and together can send them to an address(es) of his choosing.

No signature is required; it's a hardcoded perk to whoever manages to find a block.

> **Comments:**
> **username_2**: Essentially, when determining if a block is valid, a check is done. The coinbase transaction to reward the miner may not claim more than the block reward plus the difference between the bitcoins in and the bitcoins out.  

---

