Skip to content

BytomDAO/bytom.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.js

Usage

// 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 npm

Building

Build only the bytom.js package:

npm run build

This will put all the browser build files into the dist folder.

Testing (mocha)

npm test

About

Bytom Bapp JavaScript API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published