0

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.

1 Answers1

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 , 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.

Murch
  • 75,206
  • 34
  • 186
  • 622