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));

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.



Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.