tweb3-mit-abi
v0.1.1
Published
Tweb3 module encode and decode EVM in/output.
Downloads
5
Readme
tweb3-mit-abi
This is a sub package of [tweb3.js][repo]
This is the abi package to be used in the tweb3-mit
package.
Please read the [documentation][docs] for more.
Installation
Node.js
npm install tweb3-mit-abi
In the Browser
Build running the following in the [tweb3.js][repo] 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'