<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by kclowes on Medium]]></title>
        <description><![CDATA[Stories by kclowes on Medium]]></description>
        <link>https://medium.com/@khtclowes?source=rss-189fd427fbb1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*dmbNkD5D-u45r44go_cf0g.png</url>
            <title>Stories by kclowes on Medium</title>
            <link>https://medium.com/@khtclowes?source=rss-189fd427fbb1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 16:44:33 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@khtclowes/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[What’s new in web3py v5]]></title>
            <link>https://medium.com/@khtclowes/whats-new-in-web3py-v5-7c5c60d26834?source=rss-189fd427fbb1------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c5c60d26834</guid>
            <category><![CDATA[ethereum]]></category>
            <dc:creator><![CDATA[kclowes]]></dc:creator>
            <pubDate>Thu, 09 May 2019 22:02:10 GMT</pubDate>
            <atom:updated>2019-05-09T22:02:10.496Z</atom:updated>
            <content:encoded><![CDATA[<h3>What’s New in Web3py v5 Beta</h3><p>The first beta release of web3 v5 is out! Below you’ll find a high-level list of new features and backwards incompatible changes. The <a href="https://web3py.readthedocs.io/en/latest/v5_migration.html">v5 migration guide</a> gives a lower level overview to migrate your code, and you can look at the <a href="https://web3py.readthedocs.io/en/latest/releases.html">release notes</a> for the complete list of changes.</p><h3>How to Install</h3><p>If you’re ready to get started with v5 now, you can install with pip. Pip won’t install beta versions by default, so use the --pre flag to get it now:</p><pre>pip install --pre web3</pre><h3>Python 3.5 Support Dropped</h3><p>In v5, Python 3.5 is no longer supported. You’ll need to have Python 3.6+ installed.</p><h3>JSON-RPC Endpoint Updates</h3><p>In v4, JSON-RPC calls that looked up transactions or blocks and didn’t find them returned None. In v5, if a transaction or block is not found, either a BlockNotFound error or a TransactionNotFound error will be thrown as applicable. For example: web3.eth.getTransaction(‘not-a-transaction-hash’) now throws a TransactionNotFound error. These exceptions can be imported from web3.exceptions if you need to catch them in your code.</p><p>JSON-RPC endpoints have been standardized to align with <a href="https://github.com/ethereum/EIPs/blob/master/EIPS/eip-1474.md">EIP-1474</a>.</p><p>We removed JSON-RPC endpoints from the global namespace if only a certain client supports them. For instance, Geth is the only client that implements the Admin API. So, all of the JSON-RPC endpoints that used to be found at web3.admin.&lt;method name&gt; are now available at web3.geth.admin.&lt;method name&gt;. Same with the Miner API: all endpoints that used to be available at web3.miner.&lt;method name&gt; are now located at web3.geth.miner.&lt;method name&gt;. Similarly, we’ve moved the Personal API RPC endpoints to reflect the Geth and Parity implementations.</p><p>Additionally, there were a couple JSON-RPC endpoints that were duplicates and removed: <br>- web3.mining.hashrate was removed because it was a duplicate of web3.eth.hashrate<br>- web3.version.network was removed because it was a duplicate of web3.net.version</p><p>Check out the <a href="https://web3py.readthedocs.io/en/latest/v5_migration.html#json-rpc-updates">v5 migration guide</a> for a full list of methods that have been changed.</p><h3>Providers</h3><p>We’ve moved to allow only a single provider in v5. While allowing multiple providers is a feature we’d like to support in the future, the way that multiple providers was handled in v4 wasn’t ideal. The only thing they could do was fall back. There was no mechanism for round robin, nor was there any control around which provider was chosen. Eventually, we’d like to expand the Manager API to support injecting custom logic into the provider selection process.</p><p>We’ve also changed the IPCProvider so that it no longer automatically looks up a testnet connection. If you want to use a testnet, you’ll need to pass in the path.</p><h3>ENS</h3><p>Web3py has stopped inferring the .eth TLD on domain names. If a domain name is used instead of an address, you’ll need to specify the TLD. An InvalidTLD error will be thrown if the TLD is missing.</p><h3>Deprecated Methods on Contract</h3><p>There are some methods that used to be available on a contract instance that are deprecated in v4. We’ve removed them in v5:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c78b4896baf674d8a5604674ffbae18c/href">https://medium.com/media/c78b4896baf674d8a5604674ffbae18c/href</a></iframe><h3>Deprecated Web3 methods</h3><p>Web3.sha3 has been renamed to the more accurate Web3.keccak. Similarly, Web3.soliditySha3 has been renamed to Web3.solidityKeccak .</p><h3>New Features</h3><h4>Infura</h4><p>We’ve added 3 new Infura networks. You can now connect to Rinkeby, Kovan, and Goerli via: <br>from web3.auto.infura.rinkeby import w3<br>from web3.auto.infura.kovan import w3<br>from web3.auto.infura.goerli import w3</p><p>In March, Infura started requiring API keys to access any of their networks, so if you’re using Infura, you’ll need to have the WEB3_INFURA_PROJECT_ID environment variable set. Infura also added the option to require a secret key to interact with your projects. If your projects requiresa a secret key, the WEB3_INFURA_SECRET_KEY environment variable will also need to be set.</p><h4>ContractCaller API</h4><p>Because there was so much confusion around the ConciseContract and ImplicitContract classes, we have chosen to deprecate those interfaces. However, we still think there is value in the concise style. We’ve implemented a new API for reading from contracts. With v5, you can read from a contract using: contract.caller.&lt;function name&gt;.</p><p>For example, if I had a simple contract deployed that looks like this:</p><pre>contract Greeter {<br>  function greet() public pure returns (string) {<br>    return ‘Hello’;<br>  }<br>}</pre><p>I could say:</p><pre> &gt;&gt;&gt; contract.caller.greet()<br> &#39;Hello&#39;</pre><p>or</p><pre>&gt;&gt;&gt; contract.caller().greet()<br>&#39;Hello&#39;</pre><p>A transaction dictionary can be passed in as well. You’d use:</p><pre>&gt;&gt;&gt; contract.caller({transaction_dict}).greet()</pre><p>or the transaction keyword:</p><pre>&gt;&gt;&gt; contract.caller(transaction={transaction_dict}).greet()</pre><p>block_identifier is a supported keyword argument as well. For example:</p><pre>&gt;&gt;&gt; contract.caller(block_identifier=‘latest’).greet()</pre><h4>Package Manager</h4><p>EthPM is now available in web3py! Easily install and deploy smart contracts from your favorite package registries. To learn more about EthPM visit <a href="http://www.ethpm.com/">www.ethpm.com</a> or read the <a href="https://web3py.readthedocs.io/en/stable/web3.pm.html">web3.pm documentation</a>. Note that the package management API is currently experimental, and likely to change in future web3py releases.</p><h4>And More Coming Soon!</h4><p>There are also some features that are backwards compatible that will be available in future v5 releases! This list includes async functionality, accessing JSON-RPC methods using snake case instead of camel case, and type hinting.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7c5c60d26834" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>