Steps To Setup NEM Blockchain
Posted By : Abhishek Saini | 25-Feb-2018
NEM is a peer-to-peer letter and encryption platform published on March 31, 2015. NIEM includes a significance test (POI) algorithm, a multipurpose account, an encrypted message, and an Eigentrust ++ system. NEM's Blockchain software is used in a commercially available block chain called Mijin.
Following are the steps to setup its testnet node:
1) First download the latest regular stand-alone version from https://nem.io/downloads/.
2) The downloaded file will be zipped so you will need to unzip it to your preferred location.
3) After unziping, open the package folder, and open the nis folder, and then open the file called config.properties
4) Once this file is open, you can see a line that says nem.network = mainnet. You should change that to nem.network = testnet and save it.
5) Now just simply run nix.runNis.sh file in command propmt like ./nix.runNis.sh.
6) A folder name nem will created in your home directory and its testnet blocks start downloading there.
Now use Nem java library to create account.
git clone https://github.com/NEMPH/nem.core.git
cd nem.core
mvn clean install
git clone https://github.com/NEMPH/nem-apps-lib.git
cd nem-apps-lib
mvn clean install
Put both the jar created by above steps in target folder into your java project and as external libarary.
In your java code
Globals.setNodeEndpoint(new NodeEndpoint("http","",7895)); GeneratedAccount account = AccountApi.generateAccount();
Your first testnet account in nem blockchain will be created.
Thanks.
Cookies are important to the proper functioning of a site. To improve your experience, we use cookies to remember log-in details and provide secure log-in, collect statistics to optimize site functionality, and deliver content tailored to your interests. Click Agree and Proceed to accept cookies and go directly to the site or click on View Cookie Settings to see detailed descriptions of the types of cookies and choose whether to accept certain cookies while on the site.
About Author
Abhishek Saini
Abhishek is bright Lead developer with skills in AngularJS and Java. He loves to learn new technologies.