0.5.1 • Published 4 years ago

bzx.js v0.5.1

Weekly downloads
3
License
Apache-2.0
Repository
github
Last release
4 years ago

bzx.js

Javascript library for bZx. Allows for interaction with bZx smart contracts on the Ethereum blockchain.

Install

npm install --save @bzxnetwork/bzx.js

Initialize

const { BZxJS } = require("@bzxnetwork/bzx.js");

const networkId = await web3.eth.net.getId();
const bzx = await new BZxJS(web3, { networkId });

Development

  1. Install yarn if needed: npm install -g yarn.

  2. Run yarn install to install dependencies.

  3. Run yarn dev to start webpack in watch mode.

Whenever a file is saved, webpack rebuilds and outputs bzx.js in the /dist directory.

Production

  1. Run yarn build.