August 2018
Intermediate to advanced
404 pages
11h 19m
English
Here are the steps that must be followed to batch requests using web3.js:
var batch = web3.createBatch();
var balance = web3.eth.getBalance.request( web3.eth.accounts[1], 'latest', callback);var contract = web3.eth.Contract(abi) .at(address) .balance .request(web3.eth.accounts[0], callback2)batch.add(balance); batch.add(contract);
batch.execute();