How to Create a new Genesis Block with some bitcoins initially asigned to some users?


I am trying to use Bitcoin's code for some other application.

Is it possible to create a genesis block so that I can initially assign some coins (bitcoins) to some users. For e.g.
The Genesis Block contains the following information:
Address A has 10 Bitcoins
Address B has 5 Bitcoins

What changes do I have to make ?


Posted 2014-09-24T23:57:41.350

Reputation: 427



If you do this, you'll be very disappointed even if you succeed. The genesis block is ignored in terms of effects on the state of coins. The actual Bitcoin genesis block's outputs are effectively unspendable, even if Satoshi showed up with the key.

Pieter Wuille

Posted 2014-09-24T23:57:41.350

Reputation: 64 874


See here for some details on how to do this -

You need to make an output script and include that script and the public key for it in the right place in the source code.

See here for a useful script to create a genesis block using various algorithms for different coins (and which you can plug the pubkey into) -

Rob Myers

Posted 2014-09-24T23:57:41.350

Reputation: 264