Miss any of our Open RFC calls?Watch the recordings here! »

conflux-web-utils

1.36.7-alpha.0 • Public • Published

conflux-web-utils

This is a sub package of ConfluxWeb.js

This contains useful utility functions for Dapp developers.

Installation

npm install conflux-web-utils

Usage

Import all of the utils functions

import * as Utils from 'conflux-web-utils';
 
console.log(Utils);
> {
    sha3: Function,
    soliditySha3: Function,
    isAddress: Function,
    ...
}

Import what you need

import { asciiToHex } from 'conflux-web-utils';
 
console.log(asciiToHex('I have 100!'));
> "0x49206861766520313030e282ac"

Types

All the typescript typings are placed in the types folder.

Keywords

none

Install

npm i conflux-web-utils

DownloadsWeekly Downloads

113

Version

1.36.7-alpha.0

License

LGPL-3.0

Unpacked Size

75.7 kB

Total Files

7

Last publish

Collaborators

  • avatar
  • avatar
  • avatar