Let’s learn about PEPE: New Etherscan tool uses OpenAI to read smart contracts

Ethereum blockchain explorer’s new feature lets users get help understanding solidity smart contracts

article-image

Adisak Riwkratok/Shutterstock modified by Blockworks

share

Want to learn about Ethereum smart contract functionality, but have little to no developer experience? There’s a decentralized app for that.

Etherscan, the preeminent block explorer and analytics platform for Ethereum, is beta testing a new feature — called Code Reader — a tool that makes it easy to query OpenAI’s large language model (LLM) to research solidity smart contracts.

Just as the recent Advanced Filter makes it easier to research transaction information history, Code Reader provides an intuitive way for non-developers to learn about how specific smart contracts function.

Etherscan stresses that the answers are coming from OpenAI’s LLM, not Etherscan itself, and that while the tool is known to have useful applications in writing and parsing code, it shouldn’t be relied upon in a vacuum.

Professional auditing firms are already finding it offers a useful productivity boost, such as Michael Lewellen, a security solutions architect at OpenZeppelin.

“I’ve actually found it very useful,” Lewellen told Blockworks. “It’s mostly been a UX improvement, but I’ve very much enjoyed it.”

Example use cases

Bearing in mind the caveats, Etherescan says its feature will help developers and other interested parties to better understand 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,” according to a tutorial on the feature.

By entering a smart contract address, one can quickly get a list of smart contract functions, which, among other uses, can allow one to interact directly with the smart contract on the respective contract address page — an alternative to using a front-end interface.

More experienced developers can use Code Reader to learn how to integrate a given smart contract with their own decentralized apps using natural language.

Is PEPE pointless?

Code Reader won’t be able to expound upon the utility of a meme or what value any given token has to its “community,” but it can break down what’s in the smart contract code.

For a simple example, let’s see what the token contract for the recently-in-vogue memecoin PEPE does:

A quick look at the PEPE token page, shows that it has around 121,000 holders and a fully diluted market cap of some $600 million.

In this case, the contract is “ownable,” meaning an account (owner) can be “granted exclusive access to specific functions,” four specifically:

  1. A transfer ownership function allows the owner to transfer ownership of the contract to a new account.
  2. The owner can set rules for token transfers.
  3. The owner can add or remove addresses from a blacklist.
  4. A function to renounce ownership of the contract, removing any functionality that is only available to the owner.

“Renouncing ownership of a contract means giving up control over the contract and its functionalities,” the Code Reader elaborates. “After renouncing ownership, no one will have the authority to modify contract state or perform administrative actions.”

That begs the question, “has ownership of this contract been renounced?” And, OpenAI quickly points out, yes it has.

So, what does that mean, precisely?

“New addresses cannot be added to the blacklist after the ownership of the contract has been renounced. The `blacklist` function can only be called by the contract owner, as specified by the `onlyOwner` modifier in the `blacklist` function. Once the ownership has been renounced, there is no contract owner, and therefore, no one can modify the blacklist. Therefore, the contract will not have the ability to limit transfers by adding addresses to the blacklist.”

Well, that’s comforting! So, you can freely send PEPE back and forth without risk of censorship (but not much else).

The feature is still under development and the Etherscan team is actively soliciting feedback. It requires an OpenAI API key — and sufficient credits — to work.


Start your day with top crypto insights from David Canellis and Katherine Ross. Subscribe to the Empire newsletter.

Explore the growing intersection between crypto, macroeconomics, policy and finance with Ben Strack, Casey Wagner and Felix Jauvin. Subscribe to the Forward Guidance newsletter.

Get alpha directly in your inbox with the 0xResearch newsletter — market highlights, charts, degen trade ideas, governance updates, and more.

The Lightspeed newsletter is all things Solana, in your inbox, every day. Subscribe to daily Solana news from Jack Kubinec and Jeff Albus.

Tags

Upcoming Events

Javits Center North | 445 11th Ave

Tues - Thurs, March 18 - 20, 2025

Blockworks’ Digital Asset Summit (DAS) will feature conversations between the builders, allocators, and legislators who will shape the trajectory of the digital asset ecosystem in the US and abroad.

Brooklyn, NY

TUES - THURS, JUNE 24 - 26, 2025

Permissionless IV serves as the definitive gathering for crypto’s technical founders, developers, and builders to come together and create the future.If you’re ready to shape the future of crypto, Permissionless IV is where it happens.

recent research

LTIPPanalysis.png

Research

This report is a retroactive analysis of Arbitrum's Long Term Incentives Pilot Program (LTIPP). We collect relevant data at a protocol level and review bi-weekly updates to analyze recipients, their strategies, and the impact of the incentives on high level growth metrics. In particular, we want to highlight outperformers and underperformers, and glean any best practices or lessons learned for protocols distributing ARB incentives in the future. The overarching goal is to synthesize lessons learned that the DAO can reference as it begins thinking about future incentives programs–namely, the working group for incentives that is being actively discussed–especially as Timeboost introduces new conditions for trading and economic activity.

article-image

Sponsored

AI project Zerebro intersects the spheres of artificial intelligence, finance, art, music, and culture

article-image

Allmight is focused on furthering the United States’ leadership in crypto

article-image

The conditions Charles Schwab is waiting for before jumping headfirst into crypto could take shape soon

article-image

The FCA’s director of payments and digital assets shared some takeaways from chats with crypto companies and law firms

article-image

Let’s take a look at how US equities typically perform this time of year and what we might see in the coming days

article-image

Lumina introduces transparency and permissionless integration via an OP stack-based optimium, challenging traditional oracle designs