Skip to content

Instantly share code, notes, and snippets.

@st-wong
Forked from AnthonyLaw/NIS1-Guide.md
Last active April 24, 2019 03:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save st-wong/88914d95f64ec854b098be3d5c51a53a to your computer and use it in GitHub Desktop.
Save st-wong/88914d95f64ec854b098be3d5c51a53a to your computer and use it in GitHub Desktop.
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