1.0.5 • Published 8 years ago

w3.js v1.0.5

Weekly downloads
5
License
LGPL-3.0
Repository
github
Last release
8 years ago

w3.js

w3.js is a method_id and param interpretor of solidity abi

INSTALL:

npm install w3.js

USEAGE:

var SF = require('w3.js');
var abimethod = {
     name: 'myConstantMethod',
     type: 'function',
     constant: true,
     inputs: [{ name: 'a', type: 'string' }],
     outputs: [{name: 'd', type: 'string' }]
};

var sf = new SF(abimethod);


// Note: this function's params should match with the abimethod input property defination.
var data  = sf.getData('abc');
console.log(data);

//'0x65a0d493000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000036162630000000000000000000000000000000000000000000000000000000000'

// then you can use this output code to run EVM smart contract code.

// NOTE this w3.js not support the address param which web3.js implements 

More Info:

web3.js

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago