EIP-2026 · Stagnant · Core · 2019-05-14
EIP-2026: State Rent H - Fixed Prepayment for accounts
Part of the abandoned state-rent roadmap: every newly created or first-modified account would require a fixed one-off ETH prepayment, stored in a new rentbalance field, to curb state growth.
What problem does it solve?
Ethereum's state, every account and every storage slot, grows forever, and every full node has to store it. Creating an account costs a one-time gas fee that goes to the block producer, but the burden on nodes is permanent.
EIP-2026 was one piece ("change H") of Alexey Akhunov's State Rent roadmap. It introduces a fixed charge for adding accounts to the state, designed so that:
- The charge cannot be recycled through mining, so it cannot be dodged with private fee rebates, and it puts a theoretical cap on the number of accounts.
- The prepaid amount can later pay for actual rent, so a new contract with zero balance would not be evicted immediately when rent is introduced.
- It can be refunded when a contract self-destructs.
How it works
From a fork block H:
- Every account gains a new 256-bit field,
rentbalance. - Any operation that creates an account deducts a fixed
ACCOUNT_PREPAYMENTfromtx.originand puts it into the new account'srentbalance. This covers:- Sending non-zero ETH to an empty address.
- A block reward paid to a
coinbasewith no account. SELFDESTRUCTsending to an empty address.- A contract-creation transaction.
CREATEorCREATE2.
- Any operation that modifies an existing account that does not yet have
rentbalancealso charges the prepayment, so people cannot stockpile accounts before the fork. - On self-destruct, both
balanceandrentbalanceare returned.
The transaction's gasLimit × gasPrice still caps the total ETH a sender can lose, but that budget now covers both gas and prepayments. The rationale notes a separate prepaymentLimit field was considered but rejected because it would change the transaction format.
Sample code
Illustrative pseudocode. The spec leaves the value of ACCOUNT_PREPAYMENT and the fork block undefined:
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))
Things to know
- Status: Stagnant. It was never implemented, and the state-rent roadmap as a whole was not pursued on mainnet.
- Charging
tx.originmeans a user can pay for accounts created deep inside contract calls they did not write, which is why the author flags possible adverse effects on existing contracts as needing further analysis. - It requires a hard fork and changes the account structure, a significant consensus change.
- Related pieces of the same roadmap include EIP-2027 (net contract size accounting) and EIP-2029 (state counters contract). Later state-growth work moved toward other approaches such as statelessness and history/state expiry research.