0.1.1 • Published 6 years ago

tweb3-mit-abi v0.1.1

Weekly downloads
2
License
LGPL-3.0
Repository
-
Last release
6 years ago

tweb3-mit-abi

This is a sub package of tweb3.js

This is the abi package to be used in the tweb3-mit package. Please read the documentation for more.

Installation

Node.js

npm install tweb3-mit-abi

In the Browser

Build running the following in the tweb3.js repository:

npm run-script build-all

Then include dist/tweb3-mit-abi.js in your html file. This will expose the Web3MitAbi object on the window object.

Usage

// in node.js
var Web3MitAbi = require('tweb3-mit-abi');

Web3MitAbi.encodeFunctionSignature('myMethod(uint256,string)');
> '0x24ee0097'

-