Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- const pify = require('pify');
- // instance = new BinkabiBlockchainUtils
- // const web3Obj = instance.web3;
- const ethAsync = pify(web3.eth);
- module.exports = {
- ethGetBalance: ethAsync.getBalance,
- ethGetBlock: ethAsync.getBlock,
- ethGetTransactionReceipt: ethAsync.getTransactionReceipt,
- ethSendTransaction: ethAsync.sendTransaction,
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement