Skip to content

Release 0.15.3

Compare
Choose a tag to compare
@frozeman frozeman released this 29 Feb 15:44

This is a minor release with a new address checksum scheme.

  • web3.toChecksumAddress(address) - converts any address to a checksummed address (0xfb6916095ca1df60bb79ce92ce3ea74c37c5d3590xfB6916095ca1df60bB79Ce92cE3Ea74c37c5d359) according to Vitalik's EIP
  • web3.isChecksumAddress(address) - returns true if an address contains a valid checksum, otherwise false. Only checks case matching the address, doesn't check address format.
  • web3.isAddress() - returns false if it's not on a valid address format. Returns true if it's an all lowercase or all uppercase valid address. If it's a mixed case address, it checks using web3.isChecksumAddress().

Thanks to @dan-turner who we added web3.personal with account unlocking and creating functionality. Be aware that you have to enable that first when using RPC over HTTP using the --rpcapi flag. Please read more here: https://github.com/ethereum/go-ethereum/wiki/Command-Line-Options

Note that many of the API will change in the coming 1.0 release, so don't get used to this to much ;)