Releases: web3/web3.js
Releases · web3/web3.js
Release 0.4.1
critical bugfix in web3.eth.contract(abi).new(...)
Release 0.4.0
changes:
- batch requests
var batch = web3.createBatch();
batch.add(web3.eth.getBalance.request('0x0000000000000000000000000000000000000000', 'latest', callback));
batch.add(web3.eth.contract(abi).at(address).balance.request(address, callback2));
batch.execute();
- async contract creation
var MyContract = web3.eth.contract(abi);
// create new contract on a blockchain
var contract = MyContract.new({code: 0x00...df});
var contract = MyContract.new(param1, param2, {code: 0x00...df});
MyContract.new({code: 0x00...df}, function (err, contract) {});
MyContract.new(param1, param2, {code: 0x00...df}, function (err, contract) {});
// reuse existing contract
var contract = MyContract.at(address);
MyContract.at(address, function (err, contract) {})
- async contract call / sendTransaction
// myCall is a contract const function
var result = contract.myCall([3]);
var result = contract.myCall([3], {from: 0x...ff});
contract.myCall([3], function (err, result) {});
contract.myCall([3], {from: 0x...ff}, function (err, result) {});
// myTransact is a contract function
contract.myTransact([3]);
contract.myTransact([3], {from: 0x...ff});
contract.myTransact([3], function (err) {});
contract.myTransact([3], {from: 0x...ff}, function (err) {});
- async properties
var accounts = web3.eth.accounts;
web3.eth.getAccounts(function (err, accounts) {
});
Release 0.3.6
- Handle asynchronous errors properly
- new ABI encoding implementation
Release 0.3.5
Release 0.3.4
- new method eth.hashrate
- filters 'from' && 'to' accept 'latest', 'pending' block numbers
Release 0.3.3
Fixed critical issue reported in #182
Release 0.3.2
- fixed fixed size bytes encoding and decoding
Release 0.3.1
Made it possible to use pending
, latest
and earliest
as strings in the following functions as parameter 1:
web3.eth.getBlock
web3.eth.getUncle
web3.eth.getBlockTransactionCount
web3.eth.getBlockUncleCount
web3.eth.getTransactionFromBlock
Release 0.3.0
- refactored solidity param encoding/decoding.
- refactored contract functions/events
- minor fixes to shh and eth filter topics
Release 0.2.8
changes
- fixed web3.shh.post issue
- handling errors on httprequest provider
- filter.watch is getting all logs after creation