bzx.js
v0.5.1
Published
JavaScript library for interacting with the bZx protocol smart contracts
Downloads
2
Readme
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
Install yarn if needed:
npm install -g yarn
.Run
yarn install
to install dependencies.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
- Run
yarn build
.