New to solidity programming and I discovered this today at this site:
var contract = new web3.eth.Contract(abi, address); var batch = new web3.BatchRequest(); batch.add(web3.eth.getBalance.request('0x0000000000000000000000000000000000000000', 'latest', callback)); batch.execute();
Which is great because I have been cutting and pasting a slew of web3 commands in the web3 console.
But I'm not sure how to actually execute a web3.js file containing the batch commands in the web3 console.
Would I say something like ./web3.js?
Not quite sure how to actually run the file containing the batch commands.