Etherscan unveils AI-fueled 'Code Reader' tool to analyze smart contract code

Quick Take

  • Etherscan has unveiled a new AI-fueled tool to help users learn about the source code of any smart contract.

Ethereum blockchain explorer Etherscan has unveiled a new AI tool that will use OpenAI's large language model to help users learn about the source code of any smart contract.

Dubbed "Code Reader," Etherscan said the beta tool can be used to "gain deeper insights into the code by generating AI prompts for specific code sections or functions that you want to understand better." It added that targeted questions will produce AI-generated explanations for specific smart contract code, thereby "enabling you to delve into the inner workings of the code."

"This feature is particularly valuable when interacting with a smart contract for the first time, as it provides a thorough understanding of its operations and functionality," Etherscan added.

Etherscan

A screenshot of Etherscan's Code Reader AI tool

Code Reader's use cases

Among other use cases, Etherscan said the tool can be used to obtain a comprehensive list of smart contract functions related to reading and writing Ethereum data. The tool can be used to explore code to integrate a smart contract with decentralized applications.

THE SCOOP

Keep up with the latest news, trends, charts and views on crypto and DeFi with a new biweekly newsletter from The Block's Frank Chaparro

By signing-up you agree to our Terms of Service and Privacy Policy
By signing-up you agree to our Terms of Service and Privacy Policy

Etherscan posted a disclaimer stating that an OpenAI API key with sufficient usage limits will be required to use the AI service on its website. It also advised users not to assume that all answers are correct. To get started, a user can insert the API key, enter a contract address, select a source file to interact with, and then begin asking questions.

"Don’t assume answers are correct!" Etherscan warned on Twitter. "This is very much a *Beta* release - please let us know what you'd like us to add or improve!"


© 2023 The Block. All Rights Reserved. This article is provided for informational purposes only. It is not offered or intended to be used as legal, tax, investment, financial, or other advice.

About Author

Nathan Crooks is the U.S managing editor at The Block, based in Miami. He was previously at Bloomberg News for 12 years, where he helmed coverage of South Florida after roles as a breaking news editor and bureau chief in Caracas, Venezuela. He's interviewed presidents, government ministers and CEOs, and, besides crypto, has covered major news events on the ground from earthquakes to hurricanes to the Chilean mine rescue in 2018. Nathan, a native of Clarion, Pennsylvania, holds a bachelor's degree from the University of Toronto, where he completed a specialist in political science, and an MBA from American University in Washington, D.C.

Editor

To contact the editor of this story:
Vishal Chawla at
[email protected]