1.0.1 • Published 5 years ago

nxt-fork-client v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Sample NXT APIs for Node JS

The sample code performs local signing and encryption using the same code used by the official NXT wallet. Your passphrase is never sent to the remote node when submitting a transaction.

To use the samples:

  • No need to install the NXT software or download the blockchain
  • Install Node JS and NPM from https://nodejs.org/en/
  • From the command prompt type:
  • npm install nxt-blockchain cd node_modules/nxt-blockchain/sample

  • Configure the remote node and NXT account by editing the config.json file

  • Run the samples using Node JS, for example: node send.money.js

Warning: Your passphrase is sent to the remote node when invoking the /startForging API or other specific APIs which require sending the passphrase to the remote node. Don't use such APIs in your code.