Ethereum Scanner Etherscan Adds OpenAI-Based Tool to Analyze Smart Contract Source Code

The tool is meant for informational purposes only, Etherscan said.

AccessTimeIconJun 19, 2023 at 3:34 p.m. UTC

Etherscan, one of the most commonly used Ethereum blockchain scanning websites, introduced a tool that uses artificial intelligence (AI) to help users interpret the source code of smart contracts, according to a post on its website.

The tool, based on AI technology developed by OpenAI, allows users to ask for an explanation of the entirety or parts of the source code of a smart contract, Etherscan said. Users can also retrieve the "read" and "write" functions of a smart contract such that they can "make informed decisions" on how to interact with them as well as explore possible ways of using them in decentralized applications, the post said.

Following the explosion of interest in AI spurred by the popularity of OpenAI's ChatGPT chatbot, blockchain and crypto companies have rushed to support traders and developers with tools based on the technology. Last week, crypto exchange Bybit integrated ChatGPT into its trading platform.

Etherscan said the tool is meant for informational purposes only and encouraged users to verify its answers instead of relying on them solely for evidence or bug bounty submissions.

In order to use Code Reader, as the Etherscan tool is called, users need to connect to OpenAI's API and have sufficient usage limits. An API, or application programming interface, allows two computer programs to communicate and share information. Etherscan's tool currently doesn't allow for conversation threads with the chatbot and can be queried only through one-off prompts.

Edited by Sheldon Reback.


Please note that our privacy policy, terms of use, cookies, and do not sell my personal information has been updated.

The leader in news and information on cryptocurrency, digital assets and the future of money, CoinDesk is a media outlet that strives for the highest journalistic standards and abides by a strict set of editorial policies. CoinDesk is an independent operating subsidiary of Digital Currency Group, which invests in cryptocurrencies and blockchain startups. As part of their compensation, certain CoinDesk employees, including editorial employees, may receive exposure to DCG equity in the form of stock appreciation rights, which vest over a multi-year period. CoinDesk journalists are not allowed to purchase stock outright in DCG.

Eliza Gkritsi

Eliza Gkritsi was CoinDesk's AI/crypto reporter.

Learn more about Consensus 2024, CoinDesk’s longest-running and most influential event that brings together all sides of crypto, blockchain and Web3. Head to to register and buy your pass now.