EIP-8250 · Draft · Core · 2026-04-16
EIP-8250: Keyed Nonces for Frame Transactions
Gives frame transactions independent nonce lanes chosen by key, so a shared sender (such as a privacy pool) can process many unrelated users' transactions without one stuck nonce blocking everyone else.
What problem does it solve?
EIP-8141 frame transactions, like every Ethereum transaction today, consume a single linear nonce per sender. If one transaction is delayed, every later one from that sender waits.
That is a real bottleneck when many independent users deliberately share one sender. The main example is privacy protocols: users withdraw through a common sender address so their activity is not linked to a personal account. With one nonce, one user's withdrawal invalidates everyone else's pending withdrawals, even though they are unrelated. Session-key wallets and relayers hit the same wall.
How it works
- The frame transaction's
noncefield is replaced bynonce_keys(a strictly increasing list of up to 16uint256keys) andnonce_seq(auint64sequence shared by all selected keys). nonce_keys == []means "use the normal account nonce", so existing behavior is preserved.- Otherwise each key has its own counter stored in a
NONCE_MANAGERsystem contract at slotkeccak256(pad32(sender) || key). The transaction is valid only if every selected key is currently atnonce_seq. Transactions using disjoint key sets do not depend on each other for replay protection. - Single-use keys. Setting
nonce_seq = 2^64 - 1requires every selected key to be unused and then marks it exhausted forever. Deriving the key from a privacy nullifier gives an atomic "spent once" guarantee. - When it is consumed. Nonce consumption happens at EIP-8141's payment-approval step, not at the end. Once payment is approved, the keys stay consumed even if later frames revert.
- Gas. Each key costs 12,100 execution gas (a cold storage read and write under EIP-8038), and the first use of a key pays state gas for one new slot under EIP-8037.
- New
TXPARAMindices let verifier code read the key count, the first key, a hash of all keys, and the legacy account nonce.
NONCE_MANAGER is deployed with a keyless transaction (Nick's method) whose code simply reverts on any ordinary call; only the protocol writes its storage.
Sample code
Validity and consumption logic, condensed from the spec:
MAX_NONCE_SEQ = 2**64 - 1
def slot(sender, key):
return keccak256(left_pad_32(sender) + key.to_bytes(32, "big"))
def is_valid(tx, state):
if tx.nonce_keys == []:
return tx.nonce_seq == state[tx.sender].nonce
for k in tx.nonce_keys:
cur = state[NONCE_MANAGER].storage[slot(tx.sender, k)]
if tx.nonce_seq == MAX_NONCE_SEQ:
if cur != 0: return False # single-use: key must be fresh
elif cur != tx.nonce_seq:
return False
return True
def consume(tx, state): # at payment APPROVE
if tx.nonce_keys == []:
state[tx.sender].nonce += 1
else:
for k in tx.nonce_keys:
new = MAX_NONCE_SEQ if tx.nonce_seq == MAX_NONCE_SEQ else tx.nonce_seq + 1
state[NONCE_MANAGER].storage[slot(tx.sender, k)] = new
Things to know
- Status: Draft. It is a delta on EIP-8141, itself a Draft, and must activate at or after it.
- The public mempool rule of one pending frame transaction per sender is unchanged. This EIP only removes the protocol-level obstacle to relaxing it later.
- Disjoint keys remove nonce ordering conflicts only. Transactions can still collide on balances, contract storage or paymaster state.
- Single-use applications must authenticate
(sender, nonce_keys_hash, nonce_seq == MAX)in theirVERIFYframe; checking only the first key is unsafe when several keys are used. - "Cancel by sending another tx with the same nonce" does not cancel a keyed transaction. You must reuse the same
(sender, nonce_keys, nonce_seq)or consume an overlapping key. - Keyed-nonce slots are never deleted, so state grows with each new key.
- For time-bounded replay protection instead of stored counters, see the companion proposal EIP-8266.