Advertisement
Guest User

web3Internal.js

a guest
Nov 18th, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. const pify = require('pify');
  2. // instance = new BinkabiBlockchainUtils
  3. // const web3Obj = instance.web3;
  4.  
  5. const ethAsync = pify(web3.eth);
  6.  
  7. module.exports = {
  8. ethGetBalance: ethAsync.getBalance,
  9. ethGetBlock: ethAsync.getBlock,
  10. ethGetTransactionReceipt: ethAsync.getTransactionReceipt,
  11. ethSendTransaction: ethAsync.sendTransaction,
  12. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement