---
eip: 2026
label: EIP-2026
title: State Rent H - Fixed Prepayment for accounts
status: Stagnant
type: Standards Track
category: Core
created: 2019-05-14
official: https://eips.ethereum.org/EIPS/eip-2026
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-2026.md
canonical: https://eips.huatuo.xyz/zh/eip-2026/
lang: zh
tldr: 已被放弃的状态租金（state rent）路线图的一部分：每个新创建或首次被修改的账户都需要一笔固定的一次性 ETH 预付款，存入新增的 rentbalance 字段，以遏制状态增长。
tags: [state-rent, state-growth, accounts, core, economics]
---

# EIP-2026: State Rent H - Fixed Prepayment for accounts

> Creation of new accounts (both contracts and non-contracts) requires a fixed one-off rent prepayment. Pre-existed accounts require the same prepayment upon the first modification. The act of rent prepayment causes the addition of an extra field to accounts, called rentbalance.

**TL;DR:** 已被放弃的状态租金（state rent）路线图的一部分：每个新创建或首次被修改的账户都需要一笔固定的一次性 ETH 预付款，存入新增的 rentbalance 字段，以遏制状态增长。

## 它解决什么问题？

以太坊的状态（每个账户和每个存储槽）会永远增长，而每个全节点都必须存储它。创建账户只需支付一次性的 gas 费，这笔费用归区块生产者，但给节点带来的负担是永久的。

EIP-2026 是 Alexey Akhunov 的**状态租金（State Rent）**路线图中的一部分（"变更 H"）。它对向状态中新增账户引入一笔固定费用，其设计目标是：

- 这笔费用无法通过挖矿回流，因此不能借助私下的手续费返还来规避，并且在理论上为账户数量设定了上限。
- 预付的金额日后可以用来支付实际租金，因此在引入租金时，余额为零的新合约不会被立即驱逐。
- 合约自毁时可以退还。

## 它如何运作

从分叉区块 `H` 开始：

- 每个账户新增一个 256 位字段 **`rentbalance`**。
- 任何**创建**账户的操作，都会从 `tx.origin` 扣除固定的 `ACCOUNT_PREPAYMENT`，并存入新账户的 `rentbalance`。这包括：
  1. 向空地址发送非零 ETH。
  2. 向没有账户的 `coinbase` 支付区块奖励。
  3. `SELFDESTRUCT` 向空地址转账。
  4. 合约创建交易。
  5. `CREATE` 或 `CREATE2`。
- 任何**修改尚无** `rentbalance` **的现有账户**的操作，同样会收取预付款，因此人们无法在分叉前囤积账户。
- 自毁时，`balance` 和 `rentbalance` 都会被退还。

交易的 `gasLimit × gasPrice` 仍然是发送者可能损失的 ETH 总额的上限，但这笔预算现在同时涵盖 gas 和预付款。设计理由中提到，曾考虑过单独增加 `prepaymentLimit` 字段，但因为会改变交易格式而被否决。

## 示例代码

仅为示意性的伪代码。规范没有确定 `ACCOUNT_PREPAYMENT` 的数值和分叉区块：

```python
def on_account_touched(state, addr, tx_origin, block_number):
    if block_number < H:
        return
    acct = state.get(addr)
    needs_prepay = acct is None or acct.rentbalance is None
    if needs_prepay:
        state.sub_balance(tx_origin, ACCOUNT_PREPAYMENT)  # paid by tx.origin, not msg.sender
        acct = state.get_or_create(addr)
        acct.rentbalance = ACCOUNT_PREPAYMENT

def on_selfdestruct(state, addr, beneficiary):
    acct = state.get(addr)
    state.add_balance(beneficiary, acct.balance + (acct.rentbalance or 0))
```

## 需要注意

- **状态：Stagnant。** 它从未被实现，整个状态租金路线图也没有在主网上推进。
- 向 `tx.origin` 收费意味着用户可能要为在其并未编写的合约调用深处创建的账户付费，这也是作者指出对现有合约可能产生不利影响、需要进一步分析的原因。
- 它需要一次硬分叉并改变账户结构，是一项重大的共识变更。
- 同一路线图的相关部分包括 [EIP-2027](/eip-2027/)（合约大小净增核算）和 [EIP-2029](/eip-2029/)（状态计数器合约）。后来针对状态增长的工作转向了其他方法，例如无状态化以及历史/状态过期的研究。


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-2026
