{"eip":7528,"title":"ETH (Native Asset) Address Convention","description":"An address placeholder for ETH when used in the same context as an ERC-20 token.","authors":["Joey Santoro (@joeysantoro)"],"status":"Final","type":"Standards Track","category":"ERC","created":"2023-10-03","requires":[20,55,4626],"discussionsTo":"https://ethereum-magicians.org/t/eip-7808-eth-native-asset-address-convention/15989","repo":"ERCs","label":"ERC-7528","officialUrl":"https://eips.ethereum.org/EIPS/eip-7528","sourceUrl":"https://github.com/ethereum/ERCs/blob/master/ERCS/erc-7528.md","url":"https://eips.huatuo.xyz/eip-7528/","tldr":{"en":"Standardises 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE as the address that means native ETH wherever a contract or event would otherwise hold an ERC-20 token address.","ja":"コントラクトやイベントが本来 ERC-20 トークンのアドレスを持つ場面で、ネイティブ ETH を意味するアドレスとして 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE を標準化する。","ko":"컨트랙트나 이벤트가 원래 ERC-20 토큰 주소를 담는 자리에서 네이티브 ETH를 뜻하는 주소로 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE를 표준화한다.","zh":"把 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE 标准化为在合约或事件本应存放 ERC-20 代币地址的位置表示原生 ETH 的地址。"},"tags":["eth","erc20","convention","defi"],"explainers":{"en":{"lang":"en","tldr":"Standardises 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE as the address that means native ETH wherever a contract or event would otherwise hold an ERC-20 token address.","tags":["eth","erc20","convention","defi"],"related":[20,4626,55],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7528/","markdown":"## What problem does it solve?\n\nMany protocols treat ETH and [ERC-20](/eip-20/) tokens the same way: a swap has an \"input token\", a vault has an \"asset\", an event logs \"which token moved\". ETH, however, is not a contract and has no address. Protocols worked around this in different ways: some forced users into WETH, some emitted separate events for ETH, and some picked a placeholder address such as `0x0`, `0x1`, `0xe` or `0xeeee…eeee`.\n\nEvery indexer, wallet and aggregator then had to learn each protocol's private convention. ERC-7528 picks one placeholder so off-chain tools can read \"this token is ETH\" consistently.\n\n## How it works\n\n- Whenever an address field or event would hold an ERC-20 token address but the token is actually native ETH, it **MUST** be `0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee`.\n- If the token is a wrapped ERC-20 version of ETH (such as WETH9), use that contract's real address, **not** the placeholder.\n- Use the [EIP-55](/eip-55/) checksummed form where appropriate: `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`.\n- On other EVM chains, the same address stands for that chain's native asset.\n\nA key use case is an [ERC-4626](/eip-4626/) vault, for example a liquid staking token, whose underlying `asset()` is native ETH: it can return this address and still fit the 4626 tooling.\n\nWhy this address? Low addresses such as `0x0`, `0x1` or `0xe` could collide with precompiles and are less recognisable. The `0xeeee…` form was already the most widely used and cannot clash with a precompile.\n\n## Sample code\n\nHandling both ETH and ERC-20 deposits with one code path and one event:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport {SafeERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\n\ncontract Deposits {\n    using SafeERC20 for IERC20;\n\n    address public constant ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n    event Deposit(address indexed user, address indexed token, uint256 amount);\n\n    function deposit(address token, uint256 amount) external payable {\n        if (token == ETH) {\n            require(msg.value == amount, \"bad value\");\n        } else {\n            require(msg.value == 0, \"no ETH\");\n            IERC20(token).safeTransferFrom(msg.sender, address(this), amount);\n        }\n        emit Deposit(msg.sender, token, amount);\n    }\n}\n```\n\nOff-chain (TypeScript):\n\n```ts\nconst NATIVE = \"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE\";\nconst isNative = (token: string) =\u003e token.toLowerCase() === NATIVE.toLowerCase();\n```\n\n## Things to know\n\n- Status is **Final**. It is a naming convention, not a new interface; nothing is deployed at the address.\n- Never call ERC-20 functions on the placeholder. Branch on it first, as in the sample.\n- Handling raw ETH means sending value to arbitrary addresses, which opens the door to re-entrancy. Follow checks-effects-interactions or use a re-entrancy guard.\n- Compare addresses case-insensitively off-chain, since some code uses the lowercase form and some the checksummed one.\n"},"ja":{"lang":"ja","tldr":"コントラクトやイベントが本来 ERC-20 トークンのアドレスを持つ場面で、ネイティブ ETH を意味するアドレスとして 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE を標準化する。","tags":["eth","erc20","convention","defi"],"related":[20,4626,55],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7528/","markdown":"## 何を解決するのか\n\n多くのプロトコルは ETH と [ERC-20](/eip-20/) トークンを同じように扱います。スワップには「入力トークン」があり、ボールトには「アセット」があり、イベントには「どのトークンが動いたか」が記録されます。しかし ETH はコントラクトではなく、アドレスを持ちません。プロトコルはこれをさまざまな方法で回避してきました。ユーザーに WETH の利用を強制するもの、ETH 用に別のイベントを emit するもの、`0x0`、`0x1`、`0xe`、`0xeeee…eeee` などのプレースホルダーアドレスを選ぶものがありました。\n\nその結果、すべてのインデクサー、ウォレット、アグリゲーターが、プロトコルごとの独自の慣習を学ぶ必要がありました。ERC-7528 は 1 つのプレースホルダーを選び、オフチェーンのツールが「このトークンは ETH である」と一貫して読み取れるようにします。\n\n## 仕組み\n\n- アドレスフィールドやイベントが本来 ERC-20 トークンのアドレスを持つ場面で、そのトークンが実際にはネイティブ ETH である場合は、`0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee` で**なければなりません**（**MUST**）。\n- トークンが ETH のラップされた ERC-20 版（WETH9 など）の場合は、プレースホルダーではなく、そのコントラクトの実際のアドレスを使います。\n- 適切な場面では [EIP-55](/eip-55/) のチェックサム形式 `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE` を使います。\n- 他の EVM チェーンでは、同じアドレスがそのチェーンのネイティブアセットを表します。\n\n重要なユースケースは [ERC-4626](/eip-4626/) のボールトです。たとえばリキッドステーキングトークンのように、基礎となる `asset()` がネイティブ ETH の場合、このアドレスを返しても 4626 のツールにそのまま対応できます。\n\nなぜこのアドレスなのか。`0x0`、`0x1`、`0xe` のような小さいアドレスはプリコンパイルと衝突する可能性があり、認識もしにくくなります。`0xeeee…` 形式はすでに最も広く使われており、プリコンパイルと衝突することもありません。\n\n## サンプルコード\n\n1 つのコードパスと 1 つのイベントで、ETH と ERC-20 の両方のデポジットを扱う例:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport {SafeERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\n\ncontract Deposits {\n    using SafeERC20 for IERC20;\n\n    address public constant ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n    event Deposit(address indexed user, address indexed token, uint256 amount);\n\n    function deposit(address token, uint256 amount) external payable {\n        if (token == ETH) {\n            require(msg.value == amount, \"bad value\");\n        } else {\n            require(msg.value == 0, \"no ETH\");\n            IERC20(token).safeTransferFrom(msg.sender, address(this), amount);\n        }\n        emit Deposit(msg.sender, token, amount);\n    }\n}\n```\n\nオフチェーン（TypeScript）:\n\n```ts\nconst NATIVE = \"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE\";\nconst isNative = (token: string) =\u003e token.toLowerCase() === NATIVE.toLowerCase();\n```\n\n## 知っておくべきこと\n\n- ステータスは **Final** です。これは命名規則であり、新しいインターフェースではありません。このアドレスには何もデプロイされていません。\n- プレースホルダーに対して ERC-20 の関数を呼んではいけません。サンプルのように、まず分岐してください。\n- 生の ETH を扱うことは、任意のアドレスに value を送ることを意味するため、リエントランシーの余地が生じます。checks-effects-interactions に従うか、リエントランシーガードを使ってください。\n- 小文字形式を使うコードもチェックサム形式を使うコードもあるため、オフチェーンではアドレスを大文字小文字を区別せずに比較してください。\n"},"ko":{"lang":"ko","tldr":"컨트랙트나 이벤트가 원래 ERC-20 토큰 주소를 담는 자리에서 네이티브 ETH를 뜻하는 주소로 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE를 표준화한다.","tags":["eth","erc20","convention","defi"],"related":[20,4626,55],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7528/","markdown":"## 어떤 문제를 해결하나요?\n\n많은 프로토콜은 ETH와 [ERC-20](/eip-20/) 토큰을 같은 방식으로 다룹니다. 스왑에는 \"입력 토큰\"이 있고, 볼트에는 \"자산\"이 있고, 이벤트는 \"어떤 토큰이 움직였는지\"를 기록합니다. 하지만 ETH는 컨트랙트가 아니라서 주소가 없습니다. 프로토콜들은 이를 여러 방식으로 우회했습니다. 사용자에게 WETH를 강제하기도 했고, ETH용 이벤트를 따로 emit하기도 했고, `0x0`, `0x1`, `0xe`, `0xeeee…eeee` 같은 자리 표시용 주소를 고르기도 했습니다.\n\n그러자 모든 인덱서, 지갑, 어그리게이터가 프로토콜마다 제각각인 관례를 배워야 했습니다. ERC-7528은 하나의 자리 표시용 주소를 정해 오프체인 도구가 \"이 토큰은 ETH다\"를 일관되게 읽을 수 있게 합니다.\n\n## 어떻게 동작하나요?\n\n- 주소 필드나 이벤트가 원래 ERC-20 토큰 주소를 담아야 하는 자리에 실제로는 네이티브 ETH가 오는 경우, 그 값은 `0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee`**여야 합니다**(**MUST**).\n- 토큰이 ETH를 래핑한 ERC-20 버전(WETH9 등)이라면 자리 표시용 주소가 **아니라** 그 컨트랙트의 실제 주소를 사용합니다.\n- 적절한 경우 [EIP-55](/eip-55/) 체크섬 형식을 사용합니다: `0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`.\n- 다른 EVM 체인에서는 같은 주소가 해당 체인의 네이티브 자산을 나타냅니다.\n\n핵심 사용 사례는 [ERC-4626](/eip-4626/) 볼트입니다. 예를 들어 기초 `asset()`이 네이티브 ETH인 리퀴드 스테이킹 토큰은 이 주소를 반환하면서도 4626 도구와 계속 맞물릴 수 있습니다.\n\n왜 이 주소일까요? `0x0`, `0x1`, `0xe` 같은 낮은 주소는 프리컴파일과 충돌할 수 있고 알아보기도 어렵습니다. `0xeeee…` 형태는 이미 가장 널리 쓰였고 프리컴파일과 충돌하지 않습니다.\n\n## 샘플 코드\n\n하나의 코드 경로와 하나의 이벤트로 ETH와 ERC-20 예치를 모두 처리하는 예:\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport {SafeERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\n\ncontract Deposits {\n    using SafeERC20 for IERC20;\n\n    address public constant ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n    event Deposit(address indexed user, address indexed token, uint256 amount);\n\n    function deposit(address token, uint256 amount) external payable {\n        if (token == ETH) {\n            require(msg.value == amount, \"bad value\");\n        } else {\n            require(msg.value == 0, \"no ETH\");\n            IERC20(token).safeTransferFrom(msg.sender, address(this), amount);\n        }\n        emit Deposit(msg.sender, token, amount);\n    }\n}\n```\n\n오프체인(TypeScript):\n\n```ts\nconst NATIVE = \"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE\";\nconst isNative = (token: string) =\u003e token.toLowerCase() === NATIVE.toLowerCase();\n```\n\n## 알아둘 점\n\n- 상태는 **Final**입니다. 이것은 새 인터페이스가 아니라 명명 규칙이며, 해당 주소에는 아무것도 배포되어 있지 않습니다.\n- 자리 표시용 주소에 대해 ERC-20 함수를 호출하지 마세요. 샘플처럼 먼저 분기하세요.\n- 순수 ETH를 다룬다는 것은 임의의 주소로 value를 보낸다는 뜻이므로 재진입의 여지가 생깁니다. checks-effects-interactions 패턴을 따르거나 재진입 방지 장치를 사용하세요.\n- 소문자 형식을 쓰는 코드도 있고 체크섬 형식을 쓰는 코드도 있으므로, 오프체인에서는 주소를 대소문자 구분 없이 비교하세요.\n"},"zh":{"lang":"zh","tldr":"把 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE 标准化为在合约或事件本应存放 ERC-20 代币地址的位置表示原生 ETH 的地址。","tags":["eth","erc20","convention","defi"],"related":[20,4626,55],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7528/","markdown":"## 它解决什么问题？\n\n许多协议对 ETH 和 [ERC-20](/eip-20/) 代币一视同仁：兑换有\"输入代币\"，金库有\"资产\"，事件会记录\"哪种代币发生了移动\"。然而 ETH 不是合约，也没有地址。协议用各种方式绕开这个问题：有的强迫用户使用 WETH，有的为 ETH 触发单独的事件，有的选一个占位地址，例如 `0x0`、`0x1`、`0xe` 或 `0xeeee…eeee`。\n\n于是每个索引器、钱包和聚合器都不得不学习每个协议各自的约定。ERC-7528 选定一个占位地址，让链下工具能一致地读出\"这个代币是 ETH\"。\n\n## 它如何运作\n\n- 只要某个地址字段或事件本应存放 ERC-20 代币地址，而该代币实际上是原生 ETH，它就**必须**（**MUST**）是 `0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee`。\n- 如果该代币是 ETH 的 ERC-20 封装版本（例如 WETH9），则使用该合约的真实地址，**而不是**占位地址。\n- 适当的时候使用 [EIP-55](/eip-55/) 校验和格式：`0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE`。\n- 在其他 EVM 链上，同一地址代表该链的原生资产。\n\n一个关键用例是 [ERC-4626](/eip-4626/) 金库，例如底层 `asset()` 是原生 ETH 的流动性质押代币：它可以返回这个地址，同时仍然适配 4626 的工具。\n\n为什么选这个地址？`0x0`、`0x1` 或 `0xe` 这类较小的地址可能与预编译合约冲突，也不易辨认。`0xeeee…` 形式已经是使用最广泛的，并且不会与预编译合约冲突。\n\n## 示例代码\n\n用同一条代码路径和同一个事件处理 ETH 和 ERC-20 存款：\n\n```solidity\n// SPDX-License-Identifier: MIT\npragma solidity ^0.8.20;\n\nimport {IERC20} from \"@openzeppelin/contracts/token/ERC20/IERC20.sol\";\nimport {SafeERC20} from \"@openzeppelin/contracts/token/ERC20/utils/SafeERC20.sol\";\n\ncontract Deposits {\n    using SafeERC20 for IERC20;\n\n    address public constant ETH = 0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE;\n\n    event Deposit(address indexed user, address indexed token, uint256 amount);\n\n    function deposit(address token, uint256 amount) external payable {\n        if (token == ETH) {\n            require(msg.value == amount, \"bad value\");\n        } else {\n            require(msg.value == 0, \"no ETH\");\n            IERC20(token).safeTransferFrom(msg.sender, address(this), amount);\n        }\n        emit Deposit(msg.sender, token, amount);\n    }\n}\n```\n\n链下（TypeScript）：\n\n```ts\nconst NATIVE = \"0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE\";\nconst isNative = (token: string) =\u003e token.toLowerCase() === NATIVE.toLowerCase();\n```\n\n## 需要注意\n\n- 状态为 **Final**。这是一种命名约定，而不是新接口；该地址上没有部署任何东西。\n- 切勿对占位地址调用 ERC-20 函数。先像示例那样进行分支判断。\n- 处理原生 ETH 意味着向任意地址发送 value，这会带来重入的风险。请遵循\"检查-生效-交互\"（checks-effects-interactions）模式，或使用重入防护。\n- 链下比较地址时请不区分大小写，因为有些代码使用小写形式，有些使用校验和形式。\n"}},"requiredBy":[7535,7726]}
