bzx.js
v0.5.1
Published
JavaScript library for interacting with the bZx protocol smart contracts
Readme
bzx.js
Javascript library for bZx. Allows for interaction with bZx smart contracts on the Ethereum blockchain.
Install
npm install --save @bzxnetwork/bzx.jsInitialize
const { BZxJS } = require("@bzxnetwork/bzx.js");
const networkId = await web3.eth.net.getId();
const bzx = await new BZxJS(web3, { networkId });Development
Install yarn if needed:
npm install -g yarn.Run
yarn installto install dependencies.Run
yarn devto start webpack in watch mode.
Whenever a file is saved, webpack rebuilds and outputs bzx.js in the /dist directory.
Production
- Run
yarn build.
