bytom.js
v2.0.0-Beta2
Published
bytom wrapper javascript
Readme
Bytom.js
This is the Bytom [JavaScript API][docs]
You need to run a bytom/bycoin environment to use this library.
Installation
Node
npm install bytom.jsUsage
// in node.js
var bytomJS = require('bytom.js');
var bytomJS = new bytomJS('http//remote-node');
console.log(bytomJS);
Additionally you can set a provider using bytomJS.setProvider() :
bytomJS.setProvider('http//remote-node');Building
Requirements
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npmBuilding
Build only the bytom.js package:
npm run buildThis will put all the browser build files into the dist folder.
Testing (mocha)
npm test