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 Code ReaderEtherscan

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.

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.