Introduction

Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.

I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.

I also build and publish a variety of tools, libraries, and open-source projects.

ERC-7528 proposes a standard way to represent ETH in ERC-20 contexts, reducing the need to wrap ETH as WETH and avoiding the associated gas overhead.

This article translates, summarizes, and expands on the proposal below.

I also cover other Ethereum proposals.

Overview

The proposal defines a convention for Ethereum and other Ethereum Virtual Machine (EVM) chains that need to identify a native asset where they would ordinarily use an ERC-20 token address. The address 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee acts as a placeholder for ETH in those interfaces.

For background on ERC-20, see the following article.

https://chaldene.net/erc20

Background and purpose

Tokens on Ethereum generally follow the ERC-20 standard. Smart contracts define how those tokens behave and expose operations such as transfers and balance queries. ETH is Ethereum's native asset and does not implement the ERC-20 interface.

The proposal gives smart contracts and applications a consistent way to identify ETH alongside ERC-20 tokens. When a field expects an asset address, 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee can represent ETH.

Example uses

  • Event logs
    • A smart contract can use this address in an event to identify ETH as the asset that moved.
  • Asset identification
    • An interface such as ERC-4626 can use the address in an asset field to represent ETH.

For more on ERC-4626, see the following article.

[ERC-4626] How the tokenized vault standard works

Using the convention on other EVM chains

Other EVM-compatible chains can use the same address to represent their own native assets, such as BNB on BNB Smart Chain or MATIC on Polygon, as named in the original article. A shared convention lets developers identify assets consistently when building applications for multiple chains.

The proposal aims to make asset handling more consistent and flexible. Representing native assets alongside ERC-20 tokens can simplify development and improve interoperability.

Motivation

The proposed use of 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee addresses a recurring integration problem on Ethereum: protocols need to represent native ETH in fields designed for ERC-20 assets. The reasons for doing so range from gas costs to the data formats used by off-chain infrastructure.

Background

ETH is fungible, but it does not conform to the ERC-20 token standard. Protocols and applications often implement interfaces for ERC-20 tokens, so native ETH cannot be passed directly to operations that require those interfaces.

Wrapped ETH (WETH)

Wrapped ETH (WETH) is one option. Wrapping ETH turns it into an ERC-20-compatible token that can be used with smart contracts and protocols that require ERC-20 tokens.

Using native ETH

Gas costs and some use cases, including liquid staking tokens (LSTs), may favor using native ETH directly. Handling ETH and ERC-20 tokens differently can fragment data and add integration work for off-chain infrastructure.

Benefits of a common event format

Using 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee to represent ETH allows protocols to use the same event format for ETH and ERC-20 assets. This makes data more consistent and reduces the complexity of off-chain infrastructure.

Integrating ERC-4626 and LSTs

One use case is an LST with an ERC-4626-style interface. ERC-4626 provides a standard interface for tokenized vaults. The address convention can extend the benefits of ERC-4626 tooling to LSTs that use ETH as their asset and make them easier to integrate across protocols.

ERC-4626

ERC-4626 is an Ethereum Improvement Proposal that defines a standard smart contract interface for tokenized financial vaults, such as investment funds or savings accounts. It specifies common operations such as depositing assets, withdrawing them, and checking balances.

A liquid staking token (LST) lets users retain liquidity while they stake assets in a protocol to earn rewards. Users can earn staking rewards while retaining access to the value of the staked assets through the LST.

What ERC-4626 integration means for LSTs

An ERC-4626-style interface can let an LST that uses ETH as its asset benefit from established vault tooling. It can offer the following benefits.

  • Standardized interface
    • Tokenized vaults, including those used for liquid staking, can expose consistent deposit, withdrawal, and balance operations.
    • Users and developers can work with those operations predictably across protocols.
  • Liquidity and accessibility
    • A vault interface can give users access to staking rewards while preserving liquidity for their staked ETH through the LST.
    • Users can deposit assets into or withdraw them from the tokenized vault through familiar operations.
  • Simpler protocol integrations
    • With a common interface, tokenized vaults, including those used for liquid staking, are easier to integrate with other protocols and applications.
    • This can reduce the complexity of moving assets between protocols and improve the user experience.

Conclusion

Applying a common vault interface to LSTs can simplify asset management and staking on Ethereum. It can also support the development and integration of tokenized vaults for a broader range of assets, including ETH, and help those vaults work across the Ethereum ecosystem.

Protocols and off-chain data infrastructure can share the same interpretation of 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee in an ERC-20 context: it means ETH. This gives developers and users a more consistent way to work with ETH alongside ERC-20 assets.

Specification

The convention applies to addresses used to identify ETH and ERC-20 tokens within a smart contract system. It covers cases where native ETH is used in place of an ERC-20 token. In this context, a token can mean either ETH or an ERC-20 token.

Basic rules

Representing ETH

When a smart contract field or event ordinarily uses an ERC-20 token address but the underlying token is ETH, the address field must use 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.

Handling WETH

An ERC-20 wrapper for ETH, such as WETH9, must use its own token contract address. It must never use 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee.

Checksummed address

Ethereum uses mixed-case checksummed addresses to help catch input errors. The Japanese article attributes this checksum to EIP-155. The mixed-case address checksum is defined by EIP-55. The checksummed form of the address used for ETH is 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE.

For more on EIP-155 and replay protection, see the following article.

[EIP-155] How Ethereum prevents transaction replay across chains

Purpose and benefits

Using a placeholder address for ETH helps smart contracts handle ETH and ERC-20 tokens consistently wherever asset identifiers are used. Shared identification logic can simplify code and reduce errors.

Off-chain data processing and analytics can also benefit. Recording transactions and events for ETH and ERC-20 assets in a consistent format improves data integration and makes reporting more efficient.

The standard defines how to represent ETH alongside ERC-20 tokens in smart contract systems. A shared convention gives developers more flexibility, reduces the chance of errors in contracts and data infrastructure, and improves interoperability across the Ethereum ecosystem.

Additional notes

The authors considered several alternative addresses for ETH, including 0x0, 0x1, and 0xe. Their leading zero bytes have a potential gas advantage. When an address is included in Ethereum transaction calldata, more zero bytes can reduce the cost of submitting it.

Problems with the alternatives

Potential conflicts with precompile addresses

Addresses such as 0x0, 0x1, and 0xe may conflict with the address space used for precompiles. These are built-in functions exposed at special EVM addresses. Such addresses carry meaning at the system level and should be avoided as general-purpose identifiers.

Lack of a distinctive pattern

These addresses are simple and have little to distinguish them as placeholders for ETH. Users and developers may have difficulty recognizing their intended meaning.

Why choose 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee?

The chosen address has three advantages.

Existing adoption

The address was already used to represent ETH and was recognizable across the ecosystem.

Recognizable pattern

The repeated characters in 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee make it easy to identify as the ETH placeholder.

No precompile conflict

The chosen address avoids conflicts with precompile addresses and the resulting system-level ambiguity.

The address 0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee was chosen as the standard way to represent ETH in an ERC-20 context. It is distinctive, already in use, and avoids precompile conflicts. Those benefits outweighed the potential gas savings of the alternatives. The convention makes it easier for users and developers to identify ETH consistently across the ecosystem.

Compatibility

The convention does not introduce compatibility problems with other standards.

Security Considerations

Using ETH directly can expose smart contract systems to reentrancy and similar vulnerabilities. Developers should follow established defensive patterns when implementing native transfers.

What is reentrancy?

Reentrancy can occur when a smart contract calls another contract and that contract calls back into the original contract. The risk is greater if the original contract transfers control before updating its state. A repeated withdrawal, for example, can occur when the contract still treats the original balance as available during the callback.

How WETH and ETH transfers differ

WETH wraps ETH in an ERC-20-compatible form. Using WETH can reduce reentrancy exposure relative to transferring native ETH because its standard ERC-20 transfer mechanism does not invoke the recipient's native ETH receive or fallback function.

Standard development patterns

  • Checks-Effects-Interactions
    • Check the transaction's preconditions, update the contract's state, and then interact with external contracts or addresses.
    • Updating state before transferring control to an external contract reduces reentrancy risk.

Implementation considerations

The ordering above is particularly important when handling native ETH. Sending ETH can trigger the recipient contract's fallback or receive function, which may hand control to code outside the sending contract. Design and implement those interactions with that behavior in mind.

Using native ETH directly can expose contracts to reentrancy, so follow established defensive patterns. WETH offers an ERC-20 representation of ETH and can avoid some of the risks of native transfers. In either case, account for the security properties of the transfer mechanism when designing the contract.

Citation

Joey Santoro (@joeysantoro), "ERC-7528: ETH (Native Asset) Address Convention [DRAFT]," Ethereum Improvement Proposals, no. 7528, October 2023. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-7528.

Conclusion

ERC-7528 gives protocols a standard identifier for native ETH in interfaces built around ERC-20 token addresses. The convention helps protocols avoid wrapping ETH merely to identify it and can reduce gas costs associated with wrapping.

For questions, contact me on Twitter.

Twitter @cardene777

Find more of my writing here.

https://chaldene.net/