<p>If you have found a new valid block at the network's chaintip, then you should submit that block to your network peers as soon as possible, so that they will hopefully add it to their local blockchain record. If other miners build upon your block, then it should become a part of the valid chain, and you will eventually be able to spend the coinbase UTXO in it (after it has matured 100 blocks).</p>
<p>As an example, if you are running bitcoin-core then you can use the <code>submitblock</code> command to submit your valid block to the network.</p>

CC BY-SA 4.0
2021-02-01T05:42:19.667Z
2021-02-01T05:42:19.667Z
chytrik
<p>What data does your hash hash? It must be a hash of a valid <a href="https://developer.bitcoin.org/reference/block_chain.html#block-headers" rel="nofollow noreferrer">block header</a>, and the block header must satisfy consensus rules and it will have a <a href="https://developer.bitcoin.org/reference/block_chain.html#merkle-trees" rel="nofollow noreferrer">merkle root of all transactions of the block</a>, and the 1st transaction will be the coinbase transaction, and the coinbase transaction will have coinbase output(s) that are allowed to create BTC &quot;from nothing&quot; on the input side (<a href="https://developer.bitcoin.org/reference/transactions.html#coinbase-input-the-input-of-the-first-transaction-in-a-block" rel="nofollow noreferrer">coinbase input</a>) i.e. claim the BTC block reward. Did your program create such outputs? If yes, then you did the setup ok, but you also have to submit the mined block to the network before someone else finds a block at the same height.</p>
<p>Then, if your block is accepted, your coinbase output(s) will become spendable after 100 blocks have been mined on top of it, see <a href="https://bitcoin.stackexchange.com/questions/1991/what-is-the-block-maturation-time">&quot;coinbase maturity&quot;</a>. If your program created those outputs right, and broadcasted the mined block which got accepted by the network, then your reward would just appear in your wallet as if you received some BTC.</p>

CC BY-SA 4.0
2022-10-31T17:04:19.460Z
2022-10-31T17:04:19.460Z
bca-0353f40e
<p>I used a mining program written in python and after a lot of time, it found a hash that looks something like this: <code>0000de957fbfdfc77582e0d0b20c53d2d1d83d8bb8cfe3693521f672bf2a6021</code> except it has 19 0's at the start and all the following text is also different. What do I do now? How do I get the bitcoin in my wallet?</p>

<wallet><sha256>
I found a BTC hash. Now what?
Virej Dasani
# I found a BTC hash. Now what?

(Asked by: username_0 on 2021-02-01)

I used a mining program written in python and after a lot of time, it found a hash that looks something like this: `0000de957fbfdfc77582e0d0b20c53d2d1d83d8bb8cfe3693521f672bf2a6021` except it has 19 0's at the start and all the following text is also different. What do I do now? How do I get the bitcoin in my wallet?

**Tags:** wallet, sha256


---

## 2 answers

### Answer by username_1 on 2021-02-01. Score: 3 | Accepted answer

If you have found a new valid block at the network's chaintip, then you should submit that block to your network peers as soon as possible, so that they will hopefully add it to their local blockchain record. If other miners build upon your block, then it should become a part of the valid chain, and you will eventually be able to spend the coinbase UTXO in it (after it has matured 100 blocks).

As an example, if you are running bitcoin-core then you can use the `submitblock` command to submit your valid block to the network.


---

### Answer by username_2 on 2022-10-31. Score: 0

What data does your hash hash? It must be a hash of a valid [block header](https://developer.bitcoin.org/reference/block_chain.html#block-headers), and the block header must satisfy consensus rules and it will have a [merkle root of all transactions of the block](https://developer.bitcoin.org/reference/block_chain.html#merkle-trees), and the 1st transaction will be the coinbase transaction, and the coinbase transaction will have coinbase output(s) that are allowed to create BTC "from nothing" on the input side ([coinbase input](https://developer.bitcoin.org/reference/transactions.html#coinbase-input-the-input-of-the-first-transaction-in-a-block)) i.e. claim the BTC block reward. Did your program create such outputs? If yes, then you did the setup ok, but you also have to submit the mined block to the network before someone else finds a block at the same height.

Then, if your block is accepted, your coinbase output(s) will become spendable after 100 blocks have been mined on top of it, see ["coinbase maturity"](https://bitcoin.stackexchange.com/questions/1991/what-is-the-block-maturation-time). If your program created those outputs right, and broadcasted the mined block which got accepted by the network, then your reward would just appear in your wallet as if you received some BTC.


---

