newchain-web3-utils
Collection of utility functions used in newchain-web3.js.
Last updated 8 months ago by xiawu_zeuux .
LGPL-3.0 · Repository · Original npm · Tarball · package.json
$ cnpm install newchain-web3-utils 
SYNC missed versions from official npm registry.

web3-utils

This is a sub package of newchain-web3.js

This contains useful utility functions for Dapp developers.
Please read the documentation for more.

Installation

npm install newchain-web3-utils

Usage

Import all of the utils functions

import * as Utils from 'newchain-web3-utils';

console.log(Utils);
> {
    sha3: Function,
    soliditySha3: Function,
    isAddress: Function,
    ...
}

Import what you need

import { asciiToHex } from 'web3-utils';

console.log(asciiToHex('I have 100!'));
> "0x49206861766520313030e282ac"

Types

All the typescript typings are placed in the types folder.

Current Tags

  • 0.1.0                                ...           latest (8 months ago)

1 Versions

  • 0.1.0                                ...           8 months ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 0
Last Week 0
Last Month 0
Dev Dependencies (3)

Copyright 2014 - 2016 © taobao.org |