Skip to content

Releases: web3/web3.js

Release 0.4.1

13 May 10:25
Compare
Choose a tag to compare

critical bugfix in web3.eth.contract(abi).new(...)

Release 0.4.0

12 May 09:14
Compare
Choose a tag to compare

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

10 May 13:46
Compare
Choose a tag to compare
  • Handle asynchronous errors properly
  • new ABI encoding implementation

Release 0.3.5

05 May 13:42
Compare
Choose a tag to compare

fixed abi encoding #182, #187

Release 0.3.4

29 Apr 12:12
Compare
Choose a tag to compare
  • new method eth.hashrate
  • filters 'from' && 'to' accept 'latest', 'pending' block numbers

Release 0.3.3

26 Apr 08:53
Compare
Choose a tag to compare

Fixed critical issue reported in #182

Release 0.3.2

24 Apr 08:43
Compare
Choose a tag to compare
  • fixed fixed size bytes encoding and decoding

Release 0.3.1

23 Apr 08:08
Compare
Choose a tag to compare

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

22 Apr 14:46
Compare
Choose a tag to compare
  • refactored solidity param encoding/decoding.
  • refactored contract functions/events
  • minor fixes to shh and eth filter topics

Release 0.2.8

16 Apr 11:16
Compare
Choose a tag to compare

changes

  • fixed web3.shh.post issue
  • handling errors on httprequest provider
  • filter.watch is getting all logs after creation