This is the Bytom [JavaScript API][docs]
You need to run a bytom/bycoin environment to use this library.
npm install bytom.js
// 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');
sudo apt-get update
sudo apt-get install nodejs
sudo apt-get install npm
Build only the bytom.js package:
npm run build
This will put all the browser build files into the dist
folder.
npm test