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.

About Author

Author Image
Abhishek Saini

Abhishek is bright Lead developer with skills in AngularJS and Java. He loves to learn new technologies.

Request for Proposal

Name is required

Comment is required

Sending message..