Open shuijian-xu opened 4 years ago
The transaction structure is no different from that of other transactions on the Bitcoin network, with a few exceptions:
Coinbase transactions must have exactly one input.
The one input must have a previous transaction of 32 bytes of 00.
The one input must have a previous index of ffffffff.
These three conditions determine whether a transaction is a coinbase transaction or not.
Coinbase is the required first transaction of every block and is the only transaction allowed to bring bitcoins into existence. The coinbase transaction’s outputs are kept by whomever the mining entity designates and usually include all the transaction fees of the other transactions in the block as well as something called the block reward.