<p>As a miner you first pick a set of transactions that you want to include in a block. Then you calculate the block header fields, add some randomness, and check whether that block candidate passes the difficulty requirement. If it does not, you create a new block candidate and try again.</p>
<p>When a block candidate fulfills the difficulty requirement, you have found a valid block. Your node then announces the block to its peers.</p>
<p>As the transaction set is picked as an input to the mining process, the block's content is already known. The block reward is paid out by the miner to themselves: the first transaction in the block, called the <a href="/questions/tagged/coinbase-transaction" class="post-tag" title="show questions tagged &#39;coinbase-transaction&#39;" rel="tag">coinbase-transaction</a>, pays the transaction fees and block subsidy to the miner. Each miner includes their own address in their block candidate's coinbase transaction, so whoever finds a valid block gets paid. Outputs of coinbase transactions can only be spent 100 blocks later, so only blocks that become part of the best-chain get paid.</p>

CC BY-SA 4.0
2020-09-21T21:14:02.277Z
2020-09-21T21:14:02.277Z
Murch
<p>I am pretty new to bitcoin.Suppose I mined it with a mining software. Now what do i do to earn a reward? How do i see the transactions? How do know what the block is? Most importantly, where do i submit the hash? Please help me. I am very grateful.</p>

CC BY-SA 4.0
2020-09-21T14:04:51.233Z
No. I have understood what bitcoin mining is. I want to know what to do once i get the hash.
Shreyas Fegade
CC BY-SA 4.0
2020-09-21T14:24:44.507Z
Transmit the new block to your peers (a small number of other nodes you are in contact with). Wait [100 blocks](https://bitcoin.stackexchange.com/q/40655/13866), Optional - spend the money in the coinbase transaction.
RedGrittyBrick
<block-hash>
After mining a block and getting a hash. What do i do next?
Shreyas Fegade
# After mining a block and getting a hash. What do i do next?

(Asked by: username_0 on 2020-09-21)

I am pretty new to bitcoin.Suppose I mined it with a mining software. Now what do i do to earn a reward? How do i see the transactions? How do know what the block is? Most importantly, where do i submit the hash? Please help me. I am very grateful.

**Tags:** block-hash

> **Comments:**
> **username_0**: No. I have understood what bitcoin mining is. I want to know what to do once i get the hash.  
> **username_1**: Transmit the new block to your peers (a small number of other nodes you are in contact with). Wait [100 blocks](https://bitcoin.stackexchange.com/q/40655/13866), Optional - spend the money in the coinbase transaction.  

---

## 1 answers

### Answer by username_2 on 2020-09-21. Score: 1

As a miner you first pick a set of transactions that you want to include in a block. Then you calculate the block header fields, add some randomness, and check whether that block candidate passes the difficulty requirement. If it does not, you create a new block candidate and try again.

When a block candidate fulfills the difficulty requirement, you have found a valid block. Your node then announces the block to its peers.

As the transaction set is picked as an input to the mining process, the block's content is already known. The block reward is paid out by the miner to themselves: the first transaction in the block, called the [coinbase-transaction](/questions/tagged/coinbase-transaction "show questions tagged 'coinbase-transaction'"), pays the transaction fees and block subsidy to the miner. Each miner includes their own address in their block candidate's coinbase transaction, so whoever finds a valid block gets paid. Outputs of coinbase transactions can only be spent 100 blocks later, so only blocks that become part of the best-chain get paid.


---

