🍀 Create your own Proof of Stake cryptocurrency with its own blockchain based on NXT
Create your own Proof of Stake cryptocurrency with its own blockchain based on "Nxt Blockchain Creation Kit". It should satisfy the requirements of the Jelurida Public License version 1.1 for the Nxt Public Blockchain Platform. Basically 10% of your tokens should be given to the owners of the Nxt Cryptocurrency. Furthermore, the source needs to be disclosed and under the same license. Keep in mind that this generator is not perfect!
This generator will assist you building your NXT clone. If you are an advanced user follow directly the official tutorial:
git clone https://github.com/sandoche/Proof-of-Stake-Cryptocurrency-generator
, also feel free to fork this repository!npm install
npm run nxt
docs/config/newGenesisAccounts.json
, this file will define the repartition of the coins your are creating. On the first block creation 1 billion of coins will be distributed, 10% of them will be distributed to the Nxt holders (this is part of the Jelurida Public License). You have to put the list of accounts you want to credit in the first block (the genesis block) and its matching public key. The total of the amounts should be 90000000000000000 if you don't know what to do, just put your NXT address your created (Step 1-4), and it's public key like this and save it. If you are not sure about what you are doing check this video: https://www.youtube.com/watch?v=6Wg3uv07GU4
{
"balances": {
"my nxt address here": 90000000000000000
},
"publicKeys": [
"the public key of this nxt address"
]
}
templates/conf/data
folder.
templates/conf/data/genesisParameter.json
, also edit the epochBeginning with the current date.templates/img
according to your blockchain images and the favicon in templates
npm run generate
and answer the generator's questions. The generator will automatically clone the nxt-clone-starter, change the port and name in the source code. For Windows user you should use npm run generate:docker
and have docker installed.<yourCrypto>/html
folder and find the java source in <yourCrypto>/src/java
, note that you can find many parameters that you can edit in the following file <yourCrypto>/src/java/nxt/Constants.java
<yourCrypto>
folder compile with sh ./compile.sh
(or win-compile.sh for Windows) then run with sh ./run.sh
(or run.bat for windows). Note that you can delete all the other folders they are now useless. Also you need to start forging yourself if you want to try to make transactions.doc
folderOnce your cryptocurrency ready for deployement, you need to host some nodes online. These nodes will share the transactions with other nodes, validates transactions, and forge blocks. You can do that in any virtual machine, you can use for example Amazon Web Services, or OVH. Once you have your virtual machine. Here is how to do:
<yourCrypto>/src/java/nxt/peer/Peers.java
as DEFAULT_PEER_PORT
screen
and run the node with sh ./run.sh
after sh ./compile.sh
screen
to let it forge: curl -d requestType=startForging -d secretPhrase="<passphrase>" http://localhost:<port>/nxt
don't forget of course to replace the nxt
folder and run sh ./compile.sh
then sh ./run.sh
nxt
folder and run sh ./win-compile.sh
then open run.bat
npm run generate:docker
or docker run -it --rm --name coin-generator -v "$PWD":/usr/src/app -w /usr/src/app node:8 npm run generate
mobile
folderPlease ⭐️ this repository if this project helped you!
If you like this project, feel free to donate: