0.2.2 • Published 7 years ago

web3-api-wrap v0.2.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

web3-api-wrap

Make web3@0.20.x easier to use in browser with wallet plugin such as MetaMask.

Usage

const { web3 } = require('web3-api-wrap');

async function foo() {
  console.log(await web3.eth.getBalance('an address'));
  
  const abi = require('your abi json file');

  const yourContract = web3.loadContract(abi, 'your contract address');
  console.log(await yourContract.someFunction());
}

foo().catch(console.log);
0.2.2

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago