It's very easy for beginer to create your own crypto currency.
This script is a project to generate new cryptocurrencies (altcoins) based on Litecoin. It will help you creating a git repository with minimal required changes to start your new coin and blockchain.
You need to make sure you have at least docker and git installed in any Linux distribution or MacOS. If you are using MacOS, then you also need to install gnu-sed using 'brew install gnu-sed'
Simply open the script and edit the first variables to match your coin requirements (total supply, coin unit, coin name, tcp ports..) Then simply run the script like this:
coin_generator.sh start
If you want to see all possible options, Run the script like this:
coin_generator.sh
The script will perform a couple of actions:
- Update, Upgrade
- Clone Litecoin Source from litecoin github repository
- Clone GenesisH0 and mine the genesis blocks of main, test and regtest networks in the OS (this might take a lot of time)
- Rename files and replace variables in litecoin code (genesis hashes, merkle tree hashes, tcp ports, coin name, supply...)
- Build your new coin
- Run 3 coin nodes with your coin daemon and connect each other.
- A directory mapped for each node will be created: miner2, miner3, miner4. They contain data and configuration of each independent node.
- The GENESIS_REWARD_PUBKEY will be used in the UTXO of the genesis block. If you don't change it to your own before mining the genesis block you are agreeing to pay me the genesis block reward in case your coin succeeds (Thanks! :p)
You can first check if your nodes are running and then ask them to generate some blocks. Instructions on how to do it will be printed once the script execution is done.
Yes.
- This is a very simple script to help you bootstrap. More changes will be needed to launch a cryptocurrency for real.
- You have to manually change the pictures in mycoin/share/pixmaps.
- You will need change the checkpoints in mycoin/src/chainparams.cpp.
- Consider adding a seed node and add it to src/chainparams.cpp as well.
- Currently all seeds are getting disabled.
- The script connects to the regression test network by default. This is a special network that will let you mine new blocks almost instantly (nice for testing). To launch the nodes in the main network, simply leave the CHAIN variable empty.
Then you can clean up the mess with:
coin_generator.sh clean_up
Sure. You can either submit patches, or make a donation if you found this project useful:
LTC: LbhsyrYXWbgwdiyDbRGAcXZwxKx6gdi5LR BTC: 12qGYgmUpevHWiRmizMJoRip5tdHSw9PL8