web3.js 207 B

123456789
  1. const pify = require('pify');
  2. const ethAsync = pify(web3.eth);
  3. module.exports = {
  4. ethGetBalance: ethAsync.getBalance,
  5. ethSendTransaction: ethAsync.sendTransaction,
  6. ethGetBlock: ethAsync.getBlock,
  7. };