Difference between revisions of "Coinbase"

m
Line 1: Line 1:
'''coinbase''' is the special name given to the first transaction in every block. The winning miner creates this special transaction once they solve the current block puzzle.  
+
'''Coinbase''' is the special name given to the first transaction in every block. These can also be called 'Generation Transactions'. The winning miner creates this special transaction as part of the block templating process. A part of the coinbase is also used as an 'extra nonce' during the block discovery process due to a single ASIC miner being able to test more combinations than allowed for in the 2^32 possible combinations that changing the nonce in the block header can create.
  
The Coinbase transaction contains the block reward + the total of all transaction fees combined. The payee of this transaction is the winning miner.
+
The Coinbase transaction's outputs contain the block reward + the total of all transaction fees combined. The winning miner can pay this total amount out to up to 2^64 outputs.  
  
The content of the 'input' of a generation [[Bitcoin_Transactions|transaction]]. While regular transactions use the 'inputs' section to refer to their parent transaction outputs, a generation transaction has no parent, and creates new coins from nothing.  
+
While regular transactions refer to their parent transaction outputs to aggregate 'input' funds, a generation transaction has no parent.  
  
The coinbase can contain any arbitrary data. The [[genesis block]] famously contains the dated title of an FT article:
+
The Coinbase transaction can contain any arbitrary data. The [[genesis block]] famously contains the dated title of an FT article:
 
  The Times 03/Jan/2009 Chancellor on brink of second bailout for banks
 
  The Times 03/Jan/2009 Chancellor on brink of second bailout for banks
 
 
------
 
Note: Coinbase is not to be confused with the US-based trading exchange.
 

Revision as of 13:25, 11 December 2019

Coinbase is the special name given to the first transaction in every block. These can also be called 'Generation Transactions'. The winning miner creates this special transaction as part of the block templating process. A part of the coinbase is also used as an 'extra nonce' during the block discovery process due to a single ASIC miner being able to test more combinations than allowed for in the 2^32 possible combinations that changing the nonce in the block header can create.

The Coinbase transaction's outputs contain the block reward + the total of all transaction fees combined. The winning miner can pay this total amount out to up to 2^64 outputs.

While regular transactions refer to their parent transaction outputs to aggregate 'input' funds, a generation transaction has no parent.

The Coinbase transaction can contain any arbitrary data. The genesis block famously contains the dated title of an FT article:

The Times 03/Jan/2009 Chancellor on brink of second bailout for banks