NXT API
API request wrapper for NXT crypto for Node.js and the browser. It just has all the currently public API methods for NXT along side with a dual API Promise/Callback based interface.
Plus it's created using Typescript, which should ensure the proper parameters for each API call.
Install
For node.js
npm install nxt-api
For the browser
bower install nxt-api
Usage
In Node.js:
var NXT = ; // start your NRS client firstvar API = 'http://127.0.0.1:6876'; API; API;
In the browser (needs to have nxt.apiServerCORS=true
in your NXT config file, otherwise you need to access it from same port and hostname):
Example
Start the NRS in testNet mode, then run
npm run example
TODO
- Missing JSDocs for most of the functions
Support
BTC: 1PskTzQjmzqB2boz67AXsv4C5YNWN4xmhu
NXT: NXT-7TJT-8NS2-8QBS-5Y89X