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? I asked about the program that its inputs are the nonce and the wallet address.

  • 4
    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 Mar 21 '20 at 23:41
  • 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. – David Schwartz Mar 22 '20 at 7:10

Browse other questions tagged or ask your own question.