Hey guys,
I’ve been wondering how coinbase rewards actually function. Can someone break it down for me?
I get the whole Proof of Work thing, but I’m a bit lost on how miners actually receive their bitcoins. Is it through a transaction? Also, how did Satoshi manage to set that up in the code?
Thanks a lot!
Coinbase rewards explained
8 replies 498 views
Every time miners (or mining pools) mine a block, they add a coinbase transaction in the block.
The coinbase transaction is always the first transaction of the block and it includes the newly generated coins.
You can easily check all coinbase transactions on block explorers and see how they work.
coin_sigmaLegendary
Posts: 1275 · Reputation: 5553
#3Apr 26, 2023, 04:00 AM
If this is all about coding and you are planning to cloning Bitcoin or planning to create software to mine Bitcoin I suggest learn first how it works.
Check this link below to understand how it works.
- https://github.com/openblockchains/awesome-blockchains
Don't forget to try it you can start building your own blockchain by following the DIY guide under that link.
Mining reward of coinbase refers to the transaction whereby miners receive Bitcoin as a reward for generating a new block through mining.
Bitcoin is only issued through mining and, when it is newly issued, it is given to the successful miners as a reward.
The reward is direct transaction obtained by minner as result of creating new block by mining a successfully, you can also read more through this link: https://help.coinbase.com/en-au/coinbase/getting-started/getting-started-with-coinbase/create-a-coinbase-account
Did you read the article you shared yourself?
The link you shared has nothing to do with coinbase transactions and what we are talking about here in this thread. That's about how to create an account on coinbase website which is an exchange.
paul.stakeHero Member
Posts: 651 · Reputation: 3798
#6Apr 26, 2023, 07:41 AM
I presume you refer to the coinbase transaction. There is no "coinbase reward". There is the block reward, which is consisted of the block subsidy and the transaction fees.
The coinbase transaction is the transaction in which the miner pays themselves to claim the block reward. This includes the block subsidy (issuance of new money in circulation) and the transaction fees. In the most recent block, 837521, you can notice that the first transaction is the coinbase, constructed by the miner, paying the miner 6.43321587 BTC.
This means that the miner created 6.25 new bitcoin, sent them to themselves, and claimed a total of 0.18321587 bitcoin from transaction fees.
Certainly! Coinbase rewards, also known as block rewards, are the mechanism by which new bitcoins are created and distributed to miners for validating transactions and securing the blockchain. Here's how it works:
Mining Process: Miners use powerful computers to solve complex mathematical problems that confirm and add transactions to the blockchain, a decentralized ledger of all transactions in the Bitcoin network.
Validating Transactions: When a miner successfully solves a block, they compile a list of transactions and create a new block. This block includes a special transaction called the "coinbase transaction" which contains the newly generated bitcoins as well as any transaction fees collected from the included transactions.
Creating New Bitcoins: The coinbase transaction is the first transaction in each block, and it's how new bitcoins are introduced into circulation. These newly created bitcoins are the miner's reward for successfully mining the block.
Halving: The number of bitcoins generated per block is halved approximately every four years, in an event called the "halving." This reduction is programmed into the Bitcoin protocol and is designed to control inflation and limit the total supply of bitcoins to 21 million.
Satoshi's Preprogramming: When Satoshi Nakamoto created Bitcoin, they preprogrammed the software to include the rules for generating new bitcoins. This includes the initial block reward of 50 bitcoins per block, which was halved to 25 bitcoins in November 2012, then halved again to 12.5 bitcoins in July 2016, and so on.
So, in summary, miners receive their bitcoins as a reward for successfully mining a new block, and this reward is embedded in the coinbase transaction within that block. Satoshi Nakamoto designed the protocol to gradually release new bitcoins into circulation while also controlling the rate of issuance through the halving mechanism.
https://github.com/bitcoin/bitcoin/blob/master/src/validation.cpp#L1752
https://github.com/bitcoin/bitcoin/blob/master/src/consensus/amount.h#L14
Did you use ChatGPT? Your statement contain some wrong information.
1. Statement "Miners use powerful computers..." isn't accurate since miner actually specialized hardware (a.k.a. ASIC). Computer in general have far lower efficiency compared with ASIC.
2. Statement "When a miner successfully solves a block, they compile a list of transactions and create a new block." doesn't make sense. Miner supposed to collect unconfirmed transaction (usually based on highest fee rate), then create block using those unconfirmed transaction first.
3. Coinbase rewards also let miner claim transaction fee included on block they mine.
Related topics
- The Future of Bitcoin: What If Block Rewards Fall Below Transaction Fees? 19
- using miner exhaust to power a small wind turbine 19
- Check Out Our Unique VR Tour of a Bitcoin Mine | Meet Verakari Mining 0
- SAMA X 380 ASIC Miner Overview 2
- Have you thought about getting compensation from your miner hosting service? 3
- mining info on bitcoin.org needs an update 3