youchain-utils
TypeScript icon, indicating that this package has built-in type declarations

1.0.4-alpha.0 • Public • Published

youchain-utils

This is a sub package of youchain.js

This contains useful utility functions for Dapp developers.

Installation

npm install youchain-utils

Usage

Import all of the utils functions

import * as Utils from 'youchain-utils';

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

Import what you need

import { asciiToHex } from 'youchain-utils';

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

Types

All the typescript typings are placed in the types folder.

Readme

Keywords

none

Package Sidebar

Install

npm i youchain-utils

Weekly Downloads

2

Version

1.0.4-alpha.0

License

LGPL-3.0

Unpacked Size

9.63 kB

Total Files

4

Last publish

Collaborators

  • youchain