Skip to content

Instantly share code, notes, and snippets.

@st-wong st-wong/NIS1-Guide.md forked from AnthonyLaw/NIS1-Guide.md
Last active Apr 24, 2019

Embed
What would you like to do?
NIS Node setup for Local development

All downloads can be found at bob.nem.ninja

Latest version is 0.6.97 & Signature as of this writing, please refer to link above to check for new updates.

Running Node

For Linux
Nix.runNis.sh

For Windows
RunNis.bat

Oracle Java version 8 64bit is required

Node 8GB RAM spec

Please change the content inside (runNis)

java -Xms5G -Xmx5G “-XX:+UseG1GC -XX:MaxGCPauseMillis=200 -cp ".:./*:../libs/*" org.nem.deploy.CommonStarter

Node 12GB or more RAM spec (recommended for Exchanges)

java -Xms8G -Xmx8G -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -XX:+PrintGC -Xloggc:"./gc.txt" -cp ".:./*:../libs/*" org.nem.deploy.CommonStarter

To enable transaction hash search. goto: nis/config.properties Search nis.transactionHashRetentionTime and set it to -1

Bootstrap DB for NEM Blockchain

  • Mainnet
  • Testnet
  • Again, please check for latest snapshot from link above
  • Unzip and move nis5_mainnet.h2.db file to ~/nem/nis/data/(Linux) or <UserFolder>\nem\nis\data\(Windows)

Check Node Status

https://nemproject.github.io/#NIS-status-related-requests Using this API path check on your node sync status.

https://nemproject.github.io/#block-chain-height Using this API path check on your block height.

Recommended for exchanges, this set of APIs will get blocks from the chain.
https://nemproject.github.io/#requesting-parts-of-the-block-chain
To get transaction hash directly if nis.transactionHashRetentionTime is set as mentioned above, use /transaction/get?hash=<hash>

You can always use public node to cross check with the information. Public node Testnet node Testnet Nodes Mainnet Nodes

Configure to Testnet node

Go to nis/config.properties Search nem.network and change it to testnet

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.