{"eip":8253,"title":"Bump nonce of zero-nonce storage accounts","description":"Set nonce to 1 for accounts with empty code, zero nonce, and non-empty storage via an irregular state transition","authors":["Jochem Brouwer (@jochem-brouwer)"],"status":"Draft","type":"Standards Track","category":"Core","created":"2026-05-05","requires":[161,684],"discussionsTo":"https://ethereum-magicians.org/t/eip-8253-upgrade-pre-spurious-dragon-accounts/28505","repo":"EIPs","label":"EIP-8253","officialUrl":"https://eips.ethereum.org/EIPS/eip-8253","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8253.md","url":"https://eips.huatuo.xyz/eip-8253/","tldr":{"en":"A one-time state fix at a fork block that sets nonce = 1 on the handful of code-less, zero-nonce accounts that still hold storage, so future contract creations can never land on them and inherit that storage.","ja":"フォークブロックでの 1 回限りの状態修正。コードを持たず nonce がゼロでありながら、まだストレージを保持している少数のアカウントに nonce = 1 を設定し、将来のコントラクト作成がそれらに着地してそのストレージを引き継ぐことが決してないようにする。","ko":"포크 블록에서 이루어지는 일회성 상태 수정. 코드가 없고 nonce가 0이지만 여전히 스토리지를 가진 소수의 계정에 nonce = 1을 설정해, 이후의 컨트랙트 생성이 그 계정에 떨어져 스토리지를 물려받는 일이 없게 한다.","zh":"在分叉区块处进行的一次性状态修复：对少数没有代码、nonce 为零却仍持有存储的账户，把 nonce 设为 1，这样将来的合约创建就不可能落到这些账户上并继承其存储。"},"tags":["core","state","irregular-state-transition","create","cleanup"],"explainers":{"en":{"lang":"en","tldr":"A one-time state fix at a fork block that sets nonce = 1 on the handful of code-less, zero-nonce accounts that still hold storage, so future contract creations can never land on them and inherit that storage.","tags":["core","state","irregular-state-transition","create","cleanup"],"related":[684,161,7610,7523,7928],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-8253/","markdown":"## What problem does it solve?\n\n[EIP-684](/eip-684/) blocks `CREATE`/`CREATE2` from deploying to an address that already has a non-zero nonce or code. The implicit assumption is that \"nonce 0 and no code\" means \"nothing there, including no storage.\"\n\nThat assumption has one historical exception. Before [EIP-161](/eip-161/) (Spurious Dragon), contract creation did not bump the new account's nonce first. A constructor that wrote storage but returned no code left behind an account with **nonce 0, empty code, non-empty storage**. If a contract were ever created at such an address, it would start life with that leftover storage. Clients and EIP authors must keep reasoning about this odd shape.\n\nOne fix is to check for empty storage at every contract creation ([EIP-7610](/eip-7610/)), which costs a runtime check (and sometimes a disk read) forever. EIP-8253 instead retires the shape once.\n\n## How it works\n\n- **Per-chain list.** Each chain configures a list of accounts with `nonce == 0`, empty code hash and non-empty storage root in the state just before the fork block. For Mainnet the authors publish 28 such accounts, along with the method used to derive and verify them.\n- **Irregular state transition.** At the very start of the fork block (before system contract calls and transactions), every listed account's nonce is set to `1`. Balance, code and storage are left alone. No transaction, receipt, log or gas is involved.\n- **Result.** Those accounts now look like ordinary contracts without code. Any future `CREATE`/`CREATE2` to them fails under EIP-684 because the nonce is not zero. `CALL`s to them still behave the same.\n- **Block-level access lists.** If [EIP-7928](/eip-7928/) is active, each bump appears as a single `NonceChange [0, 1]` at access index 0.\n- Chains where EIP-161 has been active since genesis (including all current public testnets, per the spec) have an empty list, and the EIP is a no-op there.\n\n## Sample code\n\nThe whole state transition (Python-style, from the reference implementation):\n\n```python\ndef apply_irregular_state_transition(state, account_list):\n    for entry in account_list:\n        # Guaranteed by how the list is built; failing here means a misconfigured list.\n        assert state.get_nonce(entry.address) == 0\n        state.set_nonce(entry.address, 1)\n        # balance, codeHash and storageRoot are intentionally not modified\n\n# BAL entry for a targeted account untouched by anything else in the block:\n# [address, [], [], [], [[0, 1]], []]\n```\n\n## Things to know\n\n- Status: **Draft**. Requires a hard fork.\n- The list is consensus-critical. A missing entry leaves the risk in place; a wrong entry could create an account or overwrite a nonce, because the transition is unconditional. The spec asks for multi-client, independent verification before scheduling.\n- The Mainnet list **must not** be reused on other chains. On some chains (Sepolia is given as an example) the original deployers can still recreate those addresses with different contents. Each chain derives its own list from its own state.\n- Bumping the nonce was preferred over deleting the storage because it is the smallest possible change: 28 nonce updates instead of rewriting storage roots for over a hundred slots.\n- It follows the same \"one-time cleanup\" approach as [EIP-7523](/eip-7523/), which removed empty accounts.\n"},"ja":{"lang":"ja","tldr":"フォークブロックでの 1 回限りの状態修正。コードを持たず nonce がゼロでありながら、まだストレージを保持している少数のアカウントに nonce = 1 を設定し、将来のコントラクト作成がそれらに着地してそのストレージを引き継ぐことが決してないようにする。","tags":["core","state","irregular-state-transition","create","cleanup"],"related":[684,161,7610,7523,7928],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-8253/","markdown":"## 何を解決するのか\n\n[EIP-684](/eip-684/) は、すでにゼロでない nonce またはコードを持つアドレスへの `CREATE`/`CREATE2` によるデプロイをブロックします。暗黙の前提は、「nonce が 0 でコードがない」ということは、ストレージも含めて「何もない」という意味だ、というものです。\n\nこの前提には、歴史的な例外が 1 つあります。[EIP-161](/eip-161/)（Spurious Dragon）より前は、コントラクト作成で新しいアカウントの nonce が先にインクリメントされませんでした。ストレージに書き込んだがコードを返さなかったコンストラクタは、**nonce が 0、コードが空、ストレージが空でない**アカウントを残しました。そのようなアドレスにコントラクトが作成されると、残されたストレージを持った状態で生を受けることになります。クライアントや EIP の著者は、この奇妙な形について考慮し続けなければなりません。\n\n1 つの解決策は、コントラクトを作成するたびにストレージが空かどうかを確認すること（[EIP-7610](/eip-7610/)）ですが、これは永久に実行時のチェック（ときにはディスク読み取り）というコストを払い続けることになります。EIP-8253 は代わりに、この形を一度で終わらせます。\n\n## 仕組み\n\n- **チェーンごとのリスト。** 各チェーンは、フォークブロック直前の状態で `nonce == 0`、コードハッシュが空、ストレージルートが空でないアカウントのリストを設定します。メインネットについては、著者らが 28 個のそのようなアカウントを、導出と検証に使った方法とともに公開しています。\n- **例外的な状態遷移。** フォークブロックのまさに冒頭（システムコントラクト呼び出しとトランザクションの前）に、リストにあるすべてのアカウントの nonce が `1` に設定されます。残高、コード、ストレージには触れません。トランザクション、レシート、ログ、ガスは関与しません。\n- **結果。** それらのアカウントは、コードを持たない通常のコントラクトのように見えるようになります。それらへの将来の `CREATE`/`CREATE2` は、nonce がゼロではないため EIP-684 により失敗します。それらへの `CALL` は従来と同じように動作します。\n- **ブロックレベルのアクセスリスト。** [EIP-7928](/eip-7928/) が有効な場合、各インクリメントは、アクセスインデックス 0 の単一の `NonceChange [0, 1]` として現れます。\n- ジェネシスから EIP-161 が有効なチェーン（仕様によれば、現在のすべての公開テストネットを含む）ではリストが空であり、そこでは EIP は何もしません。\n\n## サンプルコード\n\n状態遷移のすべて（Python 風、リファレンス実装から）:\n\n```python\ndef apply_irregular_state_transition(state, account_list):\n    for entry in account_list:\n        # Guaranteed by how the list is built; failing here means a misconfigured list.\n        assert state.get_nonce(entry.address) == 0\n        state.set_nonce(entry.address, 1)\n        # balance, codeHash and storageRoot are intentionally not modified\n\n# BAL entry for a targeted account untouched by anything else in the block:\n# [address, [], [], [], [[0, 1]], []]\n```\n\n## 知っておくべきこと\n\n- ステータス: **Draft**。ハードフォークが必要です。\n- このリストはコンセンサスに不可欠です。エントリが漏れればリスクが残ります。遷移は無条件なので、誤ったエントリはアカウントを作成したり nonce を上書きしたりする可能性があります。仕様は、スケジュールに載せる前に、複数のクライアントによる独立した検証を求めています。\n- メインネットのリストを他のチェーンで再利用しては**なりません**。一部のチェーン（Sepolia が例として挙げられています）では、元のデプロイヤーが、異なる内容でそれらのアドレスを再作成できる場合があります。各チェーンは、自分の状態から自分のリストを導出します。\n- ストレージを削除するよりも nonce のインクリメントが選ばれたのは、それが可能な限り最小の変更だからです。百を超えるスロットのストレージルートを書き換える代わりに、28 件の nonce 更新で済みます。\n- これは、空のアカウントを削除した [EIP-7523](/eip-7523/) と同じ「1 回限りのクリーンアップ」のアプローチに従っています。\n"},"ko":{"lang":"ko","tldr":"포크 블록에서 이루어지는 일회성 상태 수정. 코드가 없고 nonce가 0이지만 여전히 스토리지를 가진 소수의 계정에 nonce = 1을 설정해, 이후의 컨트랙트 생성이 그 계정에 떨어져 스토리지를 물려받는 일이 없게 한다.","tags":["core","state","irregular-state-transition","create","cleanup"],"related":[684,161,7610,7523,7928],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-8253/","markdown":"## 어떤 문제를 해결하나요?\n\n[EIP-684](/eip-684/)는 이미 0이 아닌 nonce나 코드가 있는 주소에 `CREATE`/`CREATE2`로 배포하는 것을 막습니다. 암묵적인 가정은 \"nonce 0에 코드가 없다\"는 것이 스토리지를 포함해 \"거기에 아무것도 없다\"는 뜻이라는 것입니다.\n\n이 가정에는 역사적인 예외가 하나 있습니다. [EIP-161](/eip-161/)(Spurious Dragon) 이전에는 컨트랙트 생성이 새 계정의 nonce를 먼저 올리지 않았습니다. 스토리지에 썼지만 코드를 반환하지 않은 생성자는 **nonce 0, 빈 코드, 비어 있지 않은 스토리지**를 가진 계정을 남겼습니다. 그런 주소에 컨트랙트가 생성되면 남아 있던 스토리지를 가진 채 시작하게 됩니다. 클라이언트와 EIP 저자들은 이 이상한 형태를 계속 고려해야 합니다.\n\n한 가지 해결책은 컨트랙트를 생성할 때마다 스토리지가 비어 있는지 확인하는 것([EIP-7610](/eip-7610/))이지만, 이는 영원히 런타임 검사(때로는 디스크 읽기) 비용을 치르게 됩니다. EIP-8253은 대신 이 형태를 단번에 없앱니다.\n\n## 어떻게 동작하나요?\n\n- **체인별 목록.** 각 체인은 포크 블록 직전 상태에서 `nonce == 0`이고, 코드 해시가 비어 있으며, 스토리지 루트가 비어 있지 않은 계정의 목록을 설정합니다. 메인넷에 대해서는 저자들이 그런 계정 28개를, 이를 도출하고 검증한 방법과 함께 공개합니다.\n- **비정상 상태 전이.** 포크 블록의 맨 처음(시스템 컨트랙트 호출과 트랜잭션 이전)에 목록의 모든 계정의 nonce가 `1`로 설정됩니다. 잔액, 코드, 스토리지는 건드리지 않습니다. 트랜잭션, 영수증, 로그, gas는 관여하지 않습니다.\n- **결과.** 이 계정들은 이제 코드가 없는 평범한 컨트랙트처럼 보입니다. 이후 이들에 대한 `CREATE`/`CREATE2`는 nonce가 0이 아니므로 EIP-684에 따라 실패합니다. 이들에 대한 `CALL`은 이전과 똑같이 동작합니다.\n- **블록 레벨 액세스 리스트.** [EIP-7928](/eip-7928/)이 활성화되어 있으면 각 증가는 액세스 인덱스 0의 `NonceChange [0, 1]` 하나로 나타납니다.\n- 제네시스부터 EIP-161이 활성화된 체인(스펙에 따르면 현재의 모든 공개 테스트넷 포함)은 목록이 비어 있으며, 그곳에서 이 EIP는 아무 일도 하지 않습니다.\n\n## 샘플 코드\n\n전체 상태 전이(Python 스타일, 레퍼런스 구현에서 발췌):\n\n```python\ndef apply_irregular_state_transition(state, account_list):\n    for entry in account_list:\n        # Guaranteed by how the list is built; failing here means a misconfigured list.\n        assert state.get_nonce(entry.address) == 0\n        state.set_nonce(entry.address, 1)\n        # balance, codeHash and storageRoot are intentionally not modified\n\n# BAL entry for a targeted account untouched by anything else in the block:\n# [address, [], [], [], [[0, 1]], []]\n```\n\n## 알아둘 점\n\n- 상태: **Draft**. 하드포크가 필요합니다.\n- 이 목록은 합의에 필수적입니다. 항목이 빠지면 위험이 그대로 남고, 전이는 무조건적이므로 잘못된 항목은 계정을 만들거나 nonce를 덮어쓸 수 있습니다. 스펙은 일정에 올리기 전에 여러 클라이언트의 독립적인 검증을 요구합니다.\n- 메인넷 목록을 다른 체인에서 재사용해서는 **안 됩니다**. 일부 체인(스펙은 Sepolia를 예로 듭니다)에서는 원래 배포자가 그 주소들을 다른 내용으로 다시 만들 수 있습니다. 각 체인은 자신의 상태에서 자신의 목록을 도출합니다.\n- 스토리지를 삭제하는 것보다 nonce를 올리는 쪽이 선택된 것은 가능한 가장 작은 변경이기 때문입니다. 백 개가 넘는 슬롯의 스토리지 루트를 다시 쓰는 대신 nonce 업데이트 28건이면 됩니다.\n- 빈 계정을 제거했던 [EIP-7523](/eip-7523/)과 같은 \"일회성 정리\" 접근 방식을 따릅니다.\n"},"zh":{"lang":"zh","tldr":"在分叉区块处进行的一次性状态修复：对少数没有代码、nonce 为零却仍持有存储的账户，把 nonce 设为 1，这样将来的合约创建就不可能落到这些账户上并继承其存储。","tags":["core","state","irregular-state-transition","create","cleanup"],"related":[684,161,7610,7523,7928],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-8253/","markdown":"## 它解决什么问题？\n\n[EIP-684](/eip-684/) 阻止 `CREATE`/`CREATE2` 部署到已经有非零 nonce 或代码的地址。其隐含的假设是：“nonce 为 0 且没有代码”就意味着“那里什么都没有，包括没有存储”。\n\n这个假设有一个历史上的例外。在 [EIP-161](/eip-161/)（Spurious Dragon）之前，合约创建时不会先递增新账户的 nonce。一个写入了存储但没有返回代码的构造函数，会留下一个 **nonce 为 0、代码为空、存储非空** 的账户。如果将来有合约被创建在这样的地址上，它一出生就带着这些遗留的存储。客户端和 EIP 作者必须一直考虑这种古怪的情形。\n\n一种修复办法是在每次合约创建时检查存储是否为空（[EIP-7610](/eip-7610/)），这要永远付出运行时检查（有时还有磁盘读取）的代价。EIP-8253 则选择一次性消除这种情形。\n\n## 它如何运作\n\n- **每条链一份列表。** 每条链配置一份账户列表，这些账户在分叉区块之前的状态中满足 `nonce == 0`、代码哈希为空且存储根非空。对于主网，作者公布了 28 个这样的账户，以及用于推导和验证它们的方法。\n- **非常规状态转换。** 在分叉区块的最开始（在系统合约调用和交易之前），列表中每个账户的 nonce 都被设为 `1`。余额、代码和存储都不动。不涉及任何交易、回执、日志或 gas。\n- **结果。** 这些账户现在看起来就像没有代码的普通合约。以后对它们的任何 `CREATE`/`CREATE2` 都会因为 nonce 不为零而按 EIP-684 失败。对它们的 `CALL` 行为与以前相同。\n- **区块级访问列表。** 如果 [EIP-7928](/eip-7928/) 已启用，每次递增在访问索引 0 处表现为一个 `NonceChange [0, 1]`。\n- 自创世起就已启用 EIP-161 的链（根据规范，包括当前所有公共测试网）列表为空，该 EIP 在这些链上不起作用。\n\n## 示例代码\n\n完整的状态转换（Python 风格，来自参考实现）：\n\n```python\ndef apply_irregular_state_transition(state, account_list):\n    for entry in account_list:\n        # Guaranteed by how the list is built; failing here means a misconfigured list.\n        assert state.get_nonce(entry.address) == 0\n        state.set_nonce(entry.address, 1)\n        # balance, codeHash and storageRoot are intentionally not modified\n\n# BAL entry for a targeted account untouched by anything else in the block:\n# [address, [], [], [], [[0, 1]], []]\n```\n\n## 需要注意\n\n- 状态：**Draft**。需要一次硬分叉。\n- 该列表对共识至关重要。缺少某个条目，风险依然存在；而错误的条目则可能创建账户或覆盖 nonce，因为该转换是无条件的。规范要求在排期前由多个客户端进行独立验证。\n- 主网的列表**不得**在其他链上复用。在某些链上（规范以 Sepolia 为例），原部署者仍可以用不同的内容重新创建这些地址。每条链应根据自己的状态推导自己的列表。\n- 之所以选择递增 nonce 而不是删除存储，是因为这是可能的最小改动：28 次 nonce 更新，而不是为一百多个存储槽重写存储根。\n- 它遵循与 [EIP-7523](/eip-7523/)（移除了空账户）相同的“一次性清理”思路。\n"}}}
