EIP-2026 A fixed prepayment system for account creation (State Rent H - Fixed Prepayment for accounts)

No call decision · Scaling & data · EIP status Stagnant · created 2019-05-14

When creating a new account or first modifying an existing account that has no rentbalance field, tx.origin pays a fixed prepayment (ACCOUNT_PREPAYMENT), and this money accumulates in that account's new rentbalance field.

Why it is needed

Ethereum's state grows larger as accounts increase, and since every node must keep storing this state, the cost of maintaining the network grows along with it. Simply raising the gas fee for account creation has the problem that the money goes to miners and can circulate back through mining again, and miners could secretly refund fees to specific users to get around this restriction. This EIP proposes separating the cost of account creation from the regular gas fee into a separate prepayment attributed to the account itself, preventing that money from recirculating, and pre-accumulating it as funds to be used immediately once a state rent system is introduced later.

What changes

Today

After EIP-2026

Who is affected

In depth

The rentbalance field

Every account newly created after block H gets an added field, rentbalance, a 256-bit unsigned integer. This field becomes part of the state and is pre-accumulated with an eye toward being used to cover rent once a state rent system is introduced in the future.

Five cases in which a new account is created

There are five account creation paths subject to the prepayment: a non-contract account is created by sending non-zero ETH to an address with no account, an account is created by a block reward when coinbase points to an address with no account, the argument of SELFDESTRUCT is an address with no account, a contract is created by a transaction with data but no destination, and a contract is created by executing CREATE or CREATE2.

Retroactive prepayment to prevent hoarding

When an existing account that does not yet have a rentbalance field is first modified after block H, the same ACCOUNT_PREPAYMENT is deducted from tx.origin and accumulated into that account's rentbalance. This is a measure to prevent hoarding, where people create large numbers of accounts in advance before this change takes effect in order to avoid the prepayment.

Expanded role of gaslimit

Even after the prepayment is introduced, gaslimit * gasprice still represents the maximum amount in wei that tx.origin allows to be spent from the account. However, this limit is now used to cover both regular gas purchases and the account creation prepayment together.

Why a separate prepayment instead of raising the gas fee

Simply raising the gas cost of account creation has the limitation that the cost goes to miners and can be recycled through mining again, so there is no theoretical upper bound on the growth in the number of accounts, and miners could circumvent this restriction by privately refunding fees to specific users, or spread that circumvention to other users as well. The rentbalance accumulation approach, on the other hand, is not recycled through mining, so it places a theoretical upper bound on the number of accounts, allows for a refund upon later self-destruct, and avoids the problem in the original State Rent proposal (first version) where a new contract created with 0 ETH would be evicted in the same block the moment rent was introduced.

Alternatives considered but not adopted

Instead of tying the prepayment limit to gaslimit * gasprice, an approach of adding a new separate field called prepaymentlimit to the transaction, to limit the prepayment on its own, was also considered. However, this approach was not adopted because it would require changing the transaction format itself, along with sender UI changes, and the burden of maintaining separate counters for gas and for prepayment during transaction execution.

Status and remaining work

This proposal is noted as not backwards compatible and can only be introduced via a hard fork, and since more gas must be allocated for new account creation, it could negatively affect existing contracts, an impact the original text states has not yet been analyzed in detail. Test cases and implementation are also stated to be created only after a reference implementation is produced. This EIP was written as part of the 2019 State Rent roadmap and its current status is Stagnant. The specific value of ACCOUNT_PREPAYMENT is also not specified in the original text and may still change.

Original EIP · ← EIPs