@bzxnetwork/bzx.js
TypeScript icon, indicating that this package has built-in type declarations

0.5.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @bzxnetwork/bzx.js

Weekly Downloads

4

Version

0.5.0

License

Apache-2.0

Unpacked Size

3.19 MB

Total Files

186

Last publish

Collaborators

  • tomcbean