Release Notes¶
v5.17.0 (2021-02-24)¶
Features¶
Added
get_transaction_count
, and deprecatedgetTransactionCount
(#1844)Add
w3.eth.send_transaction
, deprecatew3.eth.sendTransaction
(#1878)Add
web3.eth.sign_transaction
, deprecateweb3.eth.signTransaction
(#1879)Add
w3.eth.send_raw_transaction
, deprecatew3.eth.sendRawTransaction
(#1880)Add
w3.eth.replace_transaction
deprecatew3.eth.replaceTransaction
(#1882)
v5.16.0 (2021-02-04)¶
Features¶
Added
get_block_transaction_count
, and deprecatedgetBlockTransactionCount
(#1841)Move
defaultAccount
todefault_account
. DeprecatedefaultAccount
. (#1848)Add
eth.default_block
, deprecateeth.defaultBlock
. Also addsparity.default_block
, and deprecatesparity.defaultBlock
. (#1849)Add
eth.gas_price
, deprecateeth.gasPrice
(#1850)Added
eth.block_number
property. Deprecatedeth.blockNumber
(#1851)Add
eth.chain_id
, deprecateeth.chainId
(#1852)Add
eth.protocol_version
, deprecateeth.protocolVersion
(#1853)Add
eth.get_code
, deprecateeth.getCode
(#1856)Deprecate
eth.getProof
, addeth.get_proof
(#1857)Add
eth.get_transaction
, deprecateeth.getTransaction
(#1858)Add
eth.get_transaction_by_block
, deprecateeth.getTransactionByBlock
(#1859)Add get_uncle_by_block, deprecate getUncleByBlock (#1862)
Add get_uncle_count, deprecate getUncleCount (#1863)
Improved Documentation¶
Remove v5 breaking changes link from the top of the release notes. (#1837)
Add account creation troubleshooting docs. (#1855)
Document passing a struct into a contract function. (#1860)
Add instance configuration troubleshooting docs. (#1865)
Clarify nonce lookup in sendRawTransaction docs. (#1866)
Updated docs for web3.eth methods: eth.getTransactionReceipt and eth.waitForTransactionReceipt (#1868)
v5.15.0 (2021-01-15)¶
Features¶
Bugfixes¶
PR #1585 changed the error that was coming back from eth-tester when the Revert opcode was called, which broke some tests in downstream libraries. This PR reverts back to raising the original error. (#1813)
Added a new
ContractLogicError
for when a contract reverts a transaction.ContractLogicError
will replaceSolidityError
, in v6. (#1814)
v5.13.1 (2020-12-03)¶
v5.13.0 (2020-10-29)¶
v5.12.0-beta.3 (2020-07-15)¶
v5.12.0-beta.2 (2020-07-14)¶
v5.12.0-beta.1 (2020-07-09)¶
Features¶
Improved Documentation¶
Add a
getBalance()
example and provide more context for using the fromWei and toWei utility methods. (#1676)Overhaul the Overview documentation to provide a tour of major features. (#1681)
v5.11.1 (2020-06-17)¶
Bugfixes¶
Added formatter rules for eth_tester middleware to allow
getBalance()
by using integer block numbers (#1660)Fix type annotations within the
eth.py
module. Several arguments that defaulted toNone
were not declaredOptional
. (#1668)Fix type annotation warning when using string URI to instantiate an HTTP or WebsocketProvider. (#1669)
Fix type annotations within the
web3
modules. Several arguments that defaulted toNone
were not declaredOptional
. (#1670)
v5.11.0 (2020-06-03)¶
Features¶
Accept a block identifier in the
Contract.estimateGas
method. Includes a related upgrade of eth-tester to v0.5.0-beta.1. (#1639)Introduce a more specific validation error,
ExtraDataLengthError
. This enables tools to detect when someone may be connected to a POA network, for example, and provide a smoother developer experience. (#1666)
v5.10.0 (2020-05-18)¶
Features¶
An update of
eth-tester
includes a change of the default fork from Constantinople to Muir Glacier. #1636
Bugfixes¶
my_contract.events.MyEvent
was incorrectly annotated so thatMyEvent
was marked as aContractEvent
instance. Fixed to be a class type, i.e.,Type[ContractEvent]
. (#1646)IPCProvider correctly handled
pathlib.Path
input, but warned against its type. Fixed to permit Path objects in addition to strings. (#1647)
v5.9.0 (2020-04-30)¶
v5.8.0 (2020-04-23)¶
Features¶
Introduced
list_wallets
method to theGethPersonal
class. (#1516)Added block_identifier parameter to ContractConstructor.estimateGas method. (#1588)
Add snake_case methods to Geth and Parity Personal Modules.
Deprecate camelCase methods. (#1589)
Added new weighted keyword argument to the time based gas price strategy.
If
True
, it will more give more weight to more recent block times. (#1614)Adds support for Solidity’s new(ish) receive function.
Adds a new contract API that mirrors the existing fallback API:
contract.receive
(#1623)
Bugfixes¶
Fixed hasattr overloader method in the web3.ContractEvent, web3.ContractFunction, and web3.ContractCaller classes by implementing a try/except handler that returns False if an exception is raised in the __getattr__ overloader method (since __getattr__ HAS to be called in every __hasattr__ call).
Created two new Exception classes, ‘ABIEventFunctionNotFound’ and ‘ABIFunctionNotFound’, which inherit from both AttributeError and MismatchedABI, and replaced the MismatchedABI raises in ContractEvent, ContractFunction, and ContractCaller with a raise to the created class in the __getattr__ overloader method of the object. (#1594)
Change return type of rpc_gas_price_strategy from int to Wei (#1612)
Improved Documentation¶
Fix typo in “Internals” docs. Changed asyncronous –> asynchronous (#1607)
Improve documentation that introduces and troubleshoots Providers. (#1609)
Add documentation for when to use each transaction method. (#1610)
Remove incorrect web3 for w3 in doc example (#1615)
Add examples for using web3.contract via the ethpm module. (#1617)
Add dark mode to documentation. Also fixes a bunch of formatting issues in docs. (#1626)
v5.7.0 (2020-03-16)¶
v5.5.1 (2020-02-10)¶
v5.5.0 (2020-02-03)¶
Features¶
ENS had to release a new registry to push a bugfix. See this article for background information. Web3.py uses the new registry for all default ENS interactions, now. (#1573)
Bugfixes¶
Minor bugfix in how ContractCaller looks up abi functions. (#1552)
Update modules to use compatible typing-extensions import. (#1554)
Make ‘from’ and ‘to’ fields checksum addresses in returned transaction receipts (#1562)
Use local Trinity’s IPC socket if it is available, for newer versions of Trinity. (#1563)
Improved Documentation¶
Add Matomo Tracking to Docs site.
Matomo is an Open Source web analytics platform that allows us to get better insights and optimize for our audience without the negative consequences of other compareable platforms.
Read more: https://matomo.org/why-matomo/ (#1541)
Fix web3 typo in docs (#1559)
v5.4.0 (2019-12-06)¶
v5.2.2 (2019-10-21)¶
Web3 5.1.0 (2019-09-18)¶
Improved Documentation¶
Remove whitespace, move
topics
key ->topic
in Geth docs (#1425)Enforce stricter doc checking, turning warnings into errors to fail CI builds to catch issues quickly.
Add missing
web3.tools.rst
to the table of contents and fix incorrectly formatted JSON example. (#1437)Add example using Geth POA Middleware with Infura Rinkeby Node (#1444)
v5.0.2¶
Released August 22, 2019
Bugfixes
[ethPM] Fix bug in package id and release id fetching strategy - #1427
v5.0.1¶
Released August 15, 2019
v5.0.0¶
Released August 1, 2019
v5.0.0-beta.5¶
Released July 31, 2019
This is intended to be the final release before the stable v5 release.
v5.0.0-beta.4¶
Released July 18,2019
v5.0.0-beta.3¶
Released July 15, 2019
Features
Bugfixes
Remove full IDNA processing in favor of UTS46 - #1364
Misc
Migrate py-ethpm library to web3/ethpm - #1379
Relax canonical address requirement in ethPM - #1380
Replace ethPM’s infura strategy with web3’s native infura support - #1383
Change
combine_argument_formatters
toapply_formatters_to_sequence
- #1360Move
pytest.xfail
instances to@pytest.mark.xfail
- #1376Change
net.version
toeth.chainId
in default transaction params - #1378
v5.0.0-beta.2¶
Released May 13, 2019
v5.0.0-beta.1¶
Released May 6, 2019
v5.0.0-alpha.11¶
Released April 24, 2019
v5.0.0-alpha.10¶
Released April 15, 2019
Features
Add getLogs by blockHash - #1269
Implement chainId endpoint - #1295
Moved non-standard JSON-RPC endpoints to applicable Parity/Geth docs. Deprecated
web3.version
forweb3.api
- #1290Moved Whisper endpoints to applicable Geth or Parity namespace - #1308
Added support for Goerli provider - #1286
Added addReservedPeer to Parity module - #1311
Bugfixes
Misc
v5.0.0-alpha.9¶
Released March 26, 2019
v5.0.0-alpha.8¶
Released March 20, 2019
Breaking Changes
Removed
web3/utils
directory in favor ofweb3/_utils
- #1282Relocated personal RPC endpoints to Parity and Geth class - #1211
Deprecated
web3.net.chainId()
,web3.eth.getCompilers()
, andweb3.eth.getTransactionFromBlock()
. Removedweb3.eth.enableUnauditedFeatures()
- #1270Relocated eth_protocolVersion and web3_clientVersion - #1274
Relocated
web3.txpool
toweb3.geth.txpool
- #1275Relocated admin module to Geth namespace - #1288
Relocated miner module to Geth namespace - #1287
Features
Docs
Added v5 migration docs - #1284
v5.0.0-alpha.7¶
Released March 11, 2019
v5.0.0-alpha.6¶
Released February 25th, 2019
v5.0.0-alpha.5¶
Released February 13th, 2019
Breaking Changes
Remove deprecated
buildTransaction
,call
,deploy
,estimateGas
, andtransact
methods - #1232
Features
Misc
v5.0.0-alpha.3¶
Released January 15th, 2019
Breaking Changes
Remove
web3.miner.hashrate
andweb3.version.network
- #1198Remove
web3.providers.tester.EthereumTesterProvider
andweb3.providers.tester.TestRPCProvider
- #1199Change
manager.providers
from list to singlemanager.provider
- #1200Replace deprecated
web3.sha3
method withweb3.keccak
method - #1207Drop auto detect testnets for IPCProvider - #1206
Bugfixes
Add check to make sure blockHash exists - #1158
Misc
Remove some unreachable code in providers/base.py - #1160
Migrate tester provider results from middleware to defaults - #1188
Fix doc formatting for build_filter method - #1187
Add ERC20 example in docs - #1178
Convert Web3 instance variables to w3 - #1186
Update eth-utils dependencies and clean up other dependencies - #1195
v5.0.0-alpha.2¶
Released December 20th, 2018
v5.0.0-alpha.1¶
Released December 13th, 2018
Features
Add Rinkeby and Kovan Infura networks; made mainnet the default - #1150
Add parity-specific
listStorageKeys
RPC - #1145Deprecated
Web3.soliditySha3
; useWeb3.solidityKeccak
instead. - #1139Add default trinity locations to IPC path guesser - #1121
Add wss to
AutoProvider
- #1110Add timeout for
WebsocketProvider
- #1109Receipt timeout raises
TimeExhausted
- #1070Allow specification of block number for
eth_estimateGas
- #1046
Misc
v4.7.2¶
Released September 25th, 2018
v4.7.1¶
Released September 11th, 2018
Bugfixes
old pip bug used during release made it impossible for non-windows users to install 4.7.0.
v4.7.0¶
Released September 10th, 2018
Features
Bugfixes
Misc - Upgrade eth-tester to 0.1.0-beta.32, and remove integration tests for py-ethereum. - Upgrade eth-hash to 0.2.0 with pycryptodome 3.6.6 which resolves a vulnerability.
v4.6.0¶
Released Aug 24, 2018
Features
Support for Python 3.7, most notably in
WebsocketProvider
- #996You can now decode a transaction’s data to its original function call and arguments with:
contract.decode_function_input()
- #991Support for
IPCProvider
in FreeBSD (and more readme docs) - #1008
Bugfixes
Fix crash in time-based gas strategies with small number of transactions - #983
Fx crash when passing multiple addresses to
w3.eth.getLogs()
- #1005
Misc
Disallow configuring filters with both manual and generated topic lists - #976
Add support for the upcoming eth-abi v2, which does ABI string decoding differently - #974
Add a lot more filter tests - #997
Add more tests for filtering with
None
. Note that geth & parity differ here. - #985Follow-up on Parity bug that we reported upstream (parity#7816): they resolved in 1.10. We removed xfail on that test. - #992
Docs: add an example of interacting with an ERC20 contract - #995
A couple doc typo fixes
v4.5.0¶
Released July 30, 2018
Features
Accept addresses supplied in
bytes
format (which does not provide checksum validation)Improve estimation of gas prices
Bugfixes
Can now use a block number with
getCode()
when connected toEthereumTesterProvider
(without crashing)
Misc
Test Parity 1.11.7
Parity integration tests upgrade to use sha256 instead of md5
Fix some filter docs
eth-account upgrade to v0.3.0
eth-tester upgrade to v0.1.0-beta.29
v4.4.1¶
Released June 29, 2018
Bugfixes
eth-pm package was renamed (old one deleted) which broke the web3 release. eth-pm was removed from the web3.py install until it’s stable.
Misc
IPCProvider
now accepts apathlib.Path
argument for the IPC pathDocs explaining the new custom autoproviders in web3
v4.4.0¶
Released June 21, 2018
Features
Add support for https in WEB3_PROVIDER_URI environment variable
Can send websocket connection parameters in
WebsocketProvider
Two new auto-initialization options:
from web3.auto.gethdev import w3
from web3.auto.infura import w3
(After setting theINFURA_API_KEY
environment variable)
Alpha support for a new package management tool based on ethpm-spec, see Package Manager API
Bugfixes
Can now receive large responses in
WebsocketProvider
by specifying a largemax_size
in the websocket connection parameters.
Misc
Websockets dependency upgraded to v5
Raise deprecation warning on
getTransactionFromBlock()
Fix docs for
waitForTransactionReceipt()
Developer Dockerfile now installs testing dependencies
v4.3.0¶
Released June 6, 2018
Features
Support for the ABI types like: fixedMxN which is used by Vyper.
In-flight transaction-signing middleware: Use local keys as if they were hosted keys using the new
sign_and_send_raw_middleware
New
getUncleByBlock()
APINew name
getTransactionByBlock()
, which replaces the deprecatedgetTransactionFromBlock()
Add several new Parity trace functions
New API to resolve ambiguous function calls, for example:
Two functions with the same name that accept similar argument types, like
myfunc(uint8)
andmyfunc(int8)
, and you want to callcontract.functions.myfunc(1).call()
See how to use it at: Invoke Ambiguous Contract Functions Example
Bugfixes
Gas estimation doesn’t crash, when 0 blocks are available. (ie~ on the genesis block)
Close out all HTTPProvider sessions, to squash warnings on exit
Stop adding Contract address twice to the filter. It was making some nodes unhappy
Misc
Friendlier json encoding/decoding failure error messages
Performance improvements, when the responses from the node are large (by reducing the number of times we evaluate if the response is valid json)
Parity CI test fixes (ugh, environment setup hell, thanks to the community for cleaning this up!)
Don’t crash when requesting a transaction that was created with the parity bug (which allowed an unsigned transaction to be included, so
publicKey
isNone
)Doc fixes: addresses must be checksummed (or ENS names on mainnet)
Enable local integration testing of parity on non-Debian OS
README:
Testing setup for devs
Change the build badge from Travis to Circle CI
Cache the parity binary in Circle CI, to reduce the impact of their binary API going down
Dropped the dot:
py.test
->pytest
v4.2.1¶
Released May 9, 2018
Bugfixes
When
getting a transaction
with data attached and trying tomodify it
(say, to increase the gas price), the data was not being reattached in the new transaction.web3.personal.sendTransaction()
was crashing when using a transaction generated withbuildTransaction()
Misc
Improved error message when connecting to a geth-style PoA network
Improved error message when address is not checksummed
Started in on support for
fixedMxN
ABI argumentsLots of documentation upgrades, including:
Guide for understanding nodes/networks/connections
Simplified Quickstart with notes for common issues
A new Troubleshooting section
Potential pypy performance improvements (use toolz instead of cytoolz)
eth-tester upgraded to beta 24
v4.2.0¶
Released Apr 25, 2018
Removed audit warning and opt-in requirement for
w3.eth.account
. See more in: Working with Local Private KeysAdded an API to look up contract functions:
fn = contract.functions['function_name_here']
Upgrade Whisper (shh) module to use v6 API
Bugfix: set ‘to’ field of transaction to empty when using
transaction = contract.constructor().buildTransaction()
You can now specify nonce in
buildTransaction()
Distinguish between chain id and network id – currently always return None for
chainId
Better error message when trying to use a contract function that has 0 or >1 matches
Better error message when trying to install on a python version <3.5
Installs pypiwin32 during pip install, for a better Windows experience
Cleaned up a lot of test warnings by upgrading from deprecated APIs, especially from the deprecated
contract.deploy(txn_dict, args=contract_args)
to the newcontract.constructor(*contract_args).transact(txn_dict)
Documentation typo fixes
Better template for Pull Requests
v4.1.0¶
Released Apr 9, 2018
New
WebsocketProvider
. If you’re looking for better performance than HTTP, check out websockets.Added name collision detection to ConciseContract and ImplicitContract
Bugfix to allow fromBlock set to 0 in createFilter, like
contract.events.MyEvent.createFilter(fromBlock=0, ...)
Bugfix of ENS automatic connection
eth-tester support for Byzantium
New migration guide for v3 -> v4 upgrade
Various documentation updates
Pinned eth-account to older version
v4.0.0-beta.13¶
Released Mar 27, 2018
This is intended to be the final release before the stable v4 release.
Add support for geth 1.8 (fixed error on
getTransactionReceipt()
)You can now call a contract method at a specific block with the
block_identifier
keyword argument, see:call()
In preparation for stable release, disable
w3.eth.account
by default, until a third-party audit is complete & resolved.New API for contract deployment, which enables gas estimation, local signing, etc. See
constructor()
.Find contract events with contract.events.$my_event.createFilter()
Support auto-complete for contract methods.
Upgrade most dependencies to stable
eth-abi
eth-utils
hexbytes
not included: eth-tester and eth-account
Switch the default EthereumTesterProvider backend from eth-testrpc to eth-tester:
web3.providers.eth_tester.EthereumTesterProvider
A lot of documentation improvements
Test node integrations over a variety of providers
geth 1.8 test suite
v4.0.0-beta.12¶
A little hiccup on release. Skipped.
v4.0.0-beta.11¶
Released Feb 28, 2018
New methods to modify or replace pending transactions
A compatibility option for connecting to
geth --dev
– see Geth-style Proof of AuthorityA new
web3.net.chainId
Create a filter object from an existing filter ID.
eth-utils v1.0.1 (stable) compatibility
v4.0.0-beta.10¶
Released Feb 21, 2018
bugfix: Compatibility with eth-utils v1-beta2 (the incompatibility was causing fresh web3.py installs to fail)
bugfix: crash when sending the output of
contract.functions.myFunction().buildTransaction()
tosendTransaction()
. Now, having a chainID key does not crash sendTransaction.bugfix: a TypeError when estimating gas like:
contract.functions.myFunction().estimateGas()
is fixedAdded parity integration tests to the continuous integration suite!
Some py3 and docs cleanup
v4.0.0-beta.9¶
Released Feb 8, 2018
Access event log parameters as attributes
Support for specifying nonce in eth-tester
Bugfix dependency conflicts between eth-utils, eth-abi, and eth-tester
Clearer error message when invalid keywords provided to contract constructor function
New docs for working with private keys + set up doctests
First parity integration tests
replace internal implementation of w3.eth.account with
eth_account.account.Account
v4.0.0-beta.8¶
Released Feb 7, 2018, then recalled. It added 32MB of test data to git history, so the tag was deleted, as well as the corresponding release. (Although the release would not have contained that test data)
v4.0.0-beta.7¶
Released Jan 29, 2018
Support for
web3.eth.Eth.getLogs()
in eth-tester with py-evmProcess transaction receipts with Event ABI, using Contract.events.myEvent(*args, **kwargs).processReceipt(transaction_receipt) see Event Log Object for the new type.
Add timeout parameter to
web3.providers.ipc.IPCProvider
bugfix: make sure idna package is always installed
Replace ethtestrpc with py-evm, in all tests
Dockerfile fixup
Test refactoring & cleanup
Reduced warnings during tests
v4.0.0-beta.6¶
Released Jan 18, 2018
New contract function call API: my_contract.functions.my_func().call() is preferred over the now deprecated my_contract.call().my_func() API.
A new, sophisticated gas estimation algorithm, based on the https://ethgasstation.info approach. You must opt-in to the new approach, because it’s quite slow. We recommend using the new caching middleware. See
web3.gas_strategies.time_based.construct_time_based_gas_price_strategy()
New caching middleware that can cache based on time, block, or indefinitely.
Automatically retry JSON-RPC requests over HTTP, a few times.
ConciseContract now has the address directly
Many eth-tester fixes.
web3.providers.eth_tester.main.EthereumTesterProvider
is now a legitimate alternative toweb3.providers.tester.EthereumTesterProvider
.ethtest-rpc removed from testing. Tests use eth-tester only, on pyethereum. Soon it will be eth-tester with py-evm.
Bumped several dependencies, like eth-tester
Documentation updates
v4.0.0-beta.5¶
Released Dec 28, 2017
Improvements to working with eth-tester, using
EthereumTesterProvider
:Bugfix the key names in event logging
Add support for
sendRawTransaction()
IPCProvider
now automatically retries on a broken connection, like when you restart your nodeNew gas price engine API, laying groundwork for more advanced gas pricing strategies
v4.0.0-beta.4¶
Released Dec 7, 2017
New
buildTransaction()
method to prepare contract transactions, offlineNew automatic provider detection, for
w3 = Web3()
initializationSet environment variable WEB3_PROVIDER_URI to suggest a provider for automatic detection
New API to set providers like:
w3.providers = [IPCProvider()]
Crashfix:
web3.eth.Eth.filter()
when retrieving logs with the argument ‘latest’Bump eth-tester to v0.1.0-beta.5, with bugfix for filtering by topic
Removed GPL lib
pylru
, now believed to be in full MIT license compliance.
v4.0.0-beta.3¶
Released Dec 1, 2017
Fix encoding of ABI types:
bytes[]
andstring[]
Windows connection error bugfix
Bugfix message signatures that were broken ~1% of the time (zero-pad
r
ands
)Autoinit web3 now produces None instead of raising an exception on
from web3.auto import w3
Clearer errors on formatting failure (includes field name that failed)
Python modernization, removing Py2 compatibility cruft
Update dependencies with changed names, now:
eth-abi
eth-keyfile
eth-keys
eth-tester
eth-utils
Faster Travis CI builds, with cached geth binary
v4.0.0-beta.2¶
Released Nov 22, 2017
Bug Fixes:
sendRawTransaction()
accepts raw bytescontract()
accepts an ENS name as contract addresssignTransaction()
returns the expected hash (after signing the transaction)Account
methods can all be called statically, like:Account.sign(...)
getTransactionReceipt()
returns thestatus
field as anint
Web3.soliditySha3()
looks up ENS names if they are supplied with an “address” ABIIf running multiple threads with the same w3 instance,
ValueError: Recursively called ...
is no longer raised
Plus, various python modernization code cleanups, and testing against geth 1.7.2.
v4.0.0-beta.1¶
Python 3 is now required
ENS names can be used anywhere that a hex address can
Sign transactions and messages with local private keys
New filter mechanism:
get_all_entries()
andget_new_entries()
Quick automatic initialization with
from web3.auto import w3
All addresses must be supplied with an EIP-55 checksum
All addresses are returned with a checksum
Renamed
Web3.toDecimal()
totoInt()
, see: Encoding and Decoding HelpersAll filter calls are synchronous, gevent integration dropped
Contract
eventFilter()
has replaced bothContract.on()
andContract.pastEvents()
Contract arguments of
bytes
ABI type now accept hex strings.Contract arguments of
string
ABI type now accept pythonstr
.Contract return values of
string
ABI type now return pythonstr
.Many methods now return a
bytes
-like object where they used to return a hex string, like inWeb3.sha3()
IPC connection left open and reused, rather than opened and closed on each call
A number of deprecated methods from v3 were removed
3.16.1¶
Addition of
ethereum-tester
as a dependency
3.16.0¶
Addition of named middlewares for easier manipulation of middleware stack.
Provider middlewares can no longer be modified during runtime.
Experimental custom ABI normalization API for Contract objects.
3.15.0¶
Change docs to use RTD theme
Experimental new
EthereumTesterProvider
for theethereum-tester
library.Bugfix for
function
type abi encoding viaethereum-abi-utils
upgrade tov0.4.1
Bugfix for
Web3.toHex
to conform to RPC spec.
3.14.2¶
Fix PyPi readme text.
3.14.1¶
Fix PyPi readme text.
3.14.0¶
New
stalecheck_middleware
Improvements to
Web3.toHex
andWeb3.toText
.Improvements to
Web3.sha3
signature.Bugfixes for
Web3.eth.sign
api
3.13.5¶
Add experimental
fixture_middleware
Various bugfixes introduced in middleware API introduction and migration to formatter middleware.
3.13.4¶
Bugfix for formatter handling of contract creation transaction.
3.13.3¶
Improved testing infrastructure.
3.13.2¶
Bugfix for retrieving filter changes for both new block filters and pending transaction filters.
3.13.1¶
Fix mispelled
attrdict_middleware
(was spelledattrdict_middlware
).
3.13.0¶
New Middleware API
Support for multiple providers
New
web3.soliditySha3
Remove multiple functions that were never implemented from the original web3.
Deprecated
web3.currentProvider
accessor. Useweb3.provider
now instead.Deprecated password prompt within
web3.personal.newAccount
.
3.12.0¶
Bugfix for abi filtering to correctly handle
constructor
andfallback
type abi entries.
3.11.0¶
All web3 apis which accept
address
parameters now enforce checksums if the address looks like it is checksummed.Improvements to error messaging with when calling a contract on a node that may not be fully synced
Bugfix for
web3.eth.syncing
to correctly handleFalse
3.10.0¶
Web3 now returns
web3.utils.datastructures.AttributeDict
in places where it previously returned a normaldict
.web3.eth.contract
now performs validation on theaddress
parameter.Added
web3.eth.getWork
API
3.9.0¶
Add validation for the
abi
parameter ofeth
Contract return values of
bytes
,bytesXX
andstring
are no longer converted to text types and will be returned in their raw byte-string format.
3.8.1¶
Bugfix for
eth_sign
double hashing input.Removed deprecated
DelegatedSigningManager
Removed deprecate
PrivateKeySigningManager
3.8.0¶
Update pyrlp dependency to
>=0.4.7
Update eth-testrpc dependency to
>=1.2.0
Deprecate
DelegatedSigningManager
Deprecate
PrivateKeySigningManager
3.7.1¶
upstream version bump for bugfix in eth-abi-utils
3.7.0¶
deprecate
eth.defaultAccount
defaulting to the coinbase account.
3.6.2¶
Fix error message from contract factory creation.
Use
ethereum-utils
for utility functions.
3.6.1¶
Upgrade
ethereum-abi-utils
dependency for upstream bugfix.
3.6.0¶
Deprecate
Contract.code
: replaced byContract.bytecode
Deprecate
Contract.code_runtime
: replaced byContract.bytecode_runtime
Deprecate
abi
,code
,code_runtime
andsource
as arguments for theContract
object.Deprecate
source
as a property of theContract
objectAdd
Contract.factory()
API.Deprecate the
construct_contract_factory
helper function.
3.5.3¶
Bugfix for how
requests
library is used. Now reuses session.
3.5.2¶
Bugfix for construction of
request_kwargs
within HTTPProvider
3.5.1¶
Allow
HTTPProvider
to be imported fromweb3
module.make
HTTPProvider
accessible as a property ofweb3
instances.
3.5.0¶
Deprecate
web3.providers.rpc.RPCProvider
Deprecate
web3.providers.rpc.KeepAliveRPCProvider
Add new
web3.providers.rpc.HTTPProvider
Remove hard dependency on gevent.
3.4.4¶
Bugfix for
web3.eth.getTransaction
when the hash is unknown.
3.4.3¶
Bugfix for event log data decoding to properly handle dynamic sized values.
New
web3.tester
module to access extra RPC functionality frometh-testrpc
3.4.2¶
Fix package so that
eth-testrpc
is not required.
3.4.1¶
Force gevent<1.2.0 until this issue is fixed: https://github.com/gevent/gevent/issues/916
3.4.0¶
Bugfix for contract instances to respect
web3.eth.defaultAccount
Better error reporting when ABI decoding fails for contract method response.
3.3.0¶
New
EthereumTesterProvider
now available. Faster test runs thanTestRPCProvider
Updated underlying eth-testrpc requirement.
3.2.0¶
web3.shh
is now implemented.Introduced
KeepAliveRPCProvider
to correctly recycle HTTP connections and use HTTP keep alive
3.1.1¶
Bugfix for contract transaction sending not respecting the
web3.eth.defaultAccount
configuration.
3.1.0¶
New DelegatedSigningManager and PrivateKeySigningManager classes.
3.0.2¶
Bugfix or IPCProvider not handling large JSON responses well.
3.0.1¶
Better RPC compliance to be compatable with the Parity JSON-RPC server.
3.0.0¶
Filter
objects now support controlling the interval through which they poll using thepoll_interval
property
2.9.0¶
Bugfix generation of event topics.
Web3.Iban now allows access to Iban address tools.
2.8.1¶
Bugfix for
geth.ipc
path on linux systems.
2.8.0¶
- Changes to the
Contract
API: Contract.deploy()
parameter arguments renamed to argsContract.deploy()
now takes args and kwargs parameters to allow constructing with keyword arguments or positional arguments.Contract.pastEvents
now allows you to specify afromBlock or ``toBlock.
Previously these were forced to be'earliest'
andweb3.eth.blockNumber
respectively.Contract.call
,Contract.transact
andContract.estimateGas
are now callable as class methods as well as instance methods. When called this way, an address must be provided with the transaction parameter.Contract.call
,Contract.transact
andContract.estimateGas
now allow specifying an alternate address for the transaction.
- Changes to the
RPCProvider
now supports the following constructor arguments.ssl
for enabling SSLconnection_timeout
andnetwork_timeout
for controlling the timeouts for requests.
2.7.1¶
Bugfix: Fix KeyError in merge_args_and_kwargs helper fn.
2.7.0¶
Bugfix for usage of block identifiers ‘latest’, ‘earliest’, ‘pending’
Sphinx documentation
Non-data transactions now default to 90000 gas.
Web3 object now has helpers set as static methods rather than being set at initialization.
RPCProvider now takes a
path
parameter to allow configuration for requests to go to paths other than/
.
2.6.0¶
TestRPCProvider no longer dumps logging output to stdout and stderr.
Bugfix for return types of
address[]
Bugfix for event data types of
address
2.5.0¶
All transactions which contain a
data
element will now have their gas automatically estimated with 100k additional buffer. This was previously only true with transactions initiated from aContract
object.
2.4.0¶
Contract functions can now be called using keyword arguments.
2.3.0¶
Upstream fixes for filters
Filter APIs
on
andpastEvents
now callable as both instance and class methods.
2.2.0¶
The filters that come back from the contract
on
andpastEvents
methods now call their callbacks with the same data format asweb3.js
.
2.1.1¶
Cast RPCProvider port to an integer.
2.1.0¶
Remove all monkeypatching
2.0.0¶
Pull in downstream updates to proper gevent usage.
Fix
eth_sign
Bugfix with contract operations mutating the transaction object that is passed in.
More explicit linting ignore statements.
1.9.0¶
BugFix: fix for python3 only
json.JSONDecodeError
handling.
1.8.0¶
BugFix:
RPCProvider
not sending a content-type headerBugfix:
web3.toWei
now returns an integer instead of a decimal.Decimal
1.7.1¶
TestRPCProvider
can now be imported directly fromweb3
1.7.0¶
Add
eth.admin
interface.Bugfix: Format the return value of
web3.eth.syncing
Bugfix: IPCProvider socket interactions are now more robust.
1.6.0¶
Downstream package upgrades for
eth-testrpc
andethereum-tester-client
to handle configuration of the Homestead and DAO fork block numbers.
1.5.0¶
Rename
web3.contract._Contract
toweb3.contract.Contract
to expose it for static analysis and auto completion toolsAllow passing string parameters to functions
Automatically compute gas requirements for contract deployment and
transactions.
Contract Filters
Block, Transaction, and Log filters
web3.eth.txpool
interfaceweb3.eth.mining
interfaceFixes for encoding.
1.4.0¶
Bugfix to allow address types in constructor arguments.
1.3.0¶
Partial implementation of the
web3.eth.contract
interface.
1.2.0¶
Restructure project modules to be more flat
Add ability to run test suite without the slow tests.
Breakup
encoding
utils into smaller modules.Basic pep8 formatting.
Apply python naming conventions to internal APIs
Lots of minor bugfixes.
Removal of dead code left behing from
1.0.0
refactor.Removal of
web3/solidity
module.
1.1.0¶
Add missing
isConnected()
method.Add test coverage for
setProvider()
1.0.1¶
Specify missing
pyrlp
andgevent
dependencies
1.0.0¶
Massive refactor to the majority of the app.
0.1.0¶
Initial release