<p>Let's assume that I found the nonce for the block the world try to mine now. How can I say in python that this is the nonce and this is my wallet address so transfer the reward to it?!</p>

<p>Note: This question has nothing to do with the question: <a href="https://bitcoin.stackexchange.com/questions/68282">How is a “reward” encoded in a block?</a>
I asked about the program that its inputs are the nonce and the wallet address.</p>

CC BY-SA 4.0
2020-03-21T23:41:40.893Z
Yes, that linked question gives the answer. You don't ask anyone to transfer the reward to your address. You do that yourself in the block you create, before you even start mining.
Pieter Wuille
CC BY-SA 4.0
2020-03-22T07:10:49.390Z
The program whose inputs are the nonce and the wallet address encodes the reward in the block so that if you mine the block you get the reward.
David Schwartz
<python>
How can I ask for reward after mining?
Prometheus
# How can I ask for reward after mining?

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

Let's assume that I found the nonce for the block the world try to mine now. How can I say in python that this is the nonce and this is my wallet address so transfer the reward to it?!

Note: This question has nothing to do with the question: [How is a “reward” encoded in a block?](https://bitcoin.stackexchange.com/questions/68282)
I asked about the program that its inputs are the nonce and the wallet address.

**Tags:** python

> **Comments:**
> **username_1**: Yes, that linked question gives the answer. You don't ask anyone to transfer the reward to your address. You do that yourself in the block you create, before you even start mining.  
> **username_2**: The program whose inputs are the nonce and the wallet address encodes the reward in the block so that if you mine the block you get the reward.  

---

## 0 answers

