0.3.0 • Published 3 years ago

web3-p v0.3.0

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

Web3 Plus

A wrapper on top of web3.js with additional utilities, published to npm as web3-p

Features

  • BigNumber decimal and parsing utilities implemented with the BN class
  • Additional account utilities with the web3.eth.accounts.importAccount wrapper
  • Cached gas price with web3.eth.gasPrice and web3.eth.updateGas
  • Transaction polling with web3.eth.pollTransation

Usage

const { Web3Plus, BN, _BN } = require("web3-p");
const web3 = new Web3Plus();

Configure a Web3Plus instance with the options parameter in the constructor:

const { Web3Plus } = require("web3-p");
const web3 = new Web3Plus(null, {
    verbose: false,    // debug logging
    disableGas: false, // disable the gas cache update loop
    gasInterval: 5000, // loop time in ms of gas cache update
    pollInterval: 1000 // poll interval of web3.eth.pollTransaction
});
0.2.12

3 years ago

0.2.11

3 years ago

0.2.10

3 years ago

0.3.0

3 years ago

0.2.9

3 years ago

0.2.8

3 years ago

0.2.7

3 years ago

0.2.6

3 years ago

0.2.5

3 years ago

0.2.4

3 years ago

0.2.3

3 years ago

0.2.2

3 years ago

0.2.1

3 years ago

0.2.0

3 years ago

0.1.0

3 years ago