EIP-8266 · Draft · Core · 2026-05-15
EIP-8266: Expiring Nonces for Frame Transactions
An optional mode for frame transactions where replay protection comes from a deadline at most 60 seconds away instead of the account nonce, so a sender can have many short-lived transactions in flight with no permanent state growth.
What problem does it solve?
EIP-8141 frame transactions use the normal linear account nonce: transaction 5 must land before transaction 6, and only one can sit in the public mempool at a time. For short-lived actions such as atomic intents or time-boxed sponsorships, that ordering is pointless. Either the transaction lands within seconds or it no longer matters. The only replay risk worth guarding against is someone rebroadcasting it during that short window.
Storing a "seen" marker per transaction hash forever would solve replay but grow state without limit. EIP-8266 instead uses a fixed-size ring buffer whose entries are recycled once their deadline passes.
How it works
- Opt in with a sentinel. A frame transaction whose
nonceequals2^64 - 1is in expiring-nonce mode. The account nonce is neither checked nor incremented. - Deadline. The transaction must contain exactly one
VERIFYframe targeting EIP-8141's existing expiry verifier, whose 8-byte data is the deadlined. It must satisfynow <= d <= now + 60seconds. - Seen check. A system contract
NONCE_RINGstores, per signature hashh, the deadline it was last used with. The transaction is valid only if that stored deadline is< now, meaning the hash is unused or its previous use has expired. - Ring buffer. On payment approval,
his written into the next of 2^18 ring slots. The entry it overwrites is cleared from the seen table, but only if that entry's deadline has passed; otherwise the approval fails withBufferFullinstead of opening a replay window. Total storage is fixed at 2 × 2^18 slots. - Gas. A flat 13,000 gas per use. It skips the usual new-slot surcharge because each write is paired with a clear, so state does not grow in steady state.
- Mempool. Nodes may accept many pending expiring-nonce transactions per sender, reserving each one's maximum cost against the payer's balance.
With 60-second deadlines and 2^18 slots, the spec computes the ring can sustain about 4,369 expiring-nonce transactions per second before BufferFull could trigger.
Sample code
Validity and consumption, condensed from the spec:
SENTINEL = 2**64 - 1
MAX_EXPIRY_SECS = 60
RING_CAPACITY = 2**18
def is_valid(tx, now):
if tx.nonce != SENTINEL:
return eip8141_nonce_check(tx)
frames = [f for f in tx.frames if f.mode == VERIFY and f.target == EXPIRY_VERIFIER]
assert len(frames) == 1
d = int.from_bytes(frames[0].data, "big")
assert now <= d <= now + MAX_EXPIRY_SECS
assert seen[sig_hash(tx)] < now # unused, or previous use expired
return True
def consume(h, d, now): # at payment APPROVE
idx = ring_ptr % RING_CAPACITY
old = ring[idx]
if old and seen[old] >= now:
raise BufferFull # never evict a live entry
if old: seen[old] = 0
ring[idx], seen[h], ring_ptr = h, d, ring_ptr + 1
Things to know
- Status: Draft. It is a delta on EIP-8141, also a Draft; the
NONCE_RINGaddress and fork timestamp are TBD. - Once approved, consumption is not undone by later frame reverts.
- Expiring-nonce transactions do not advance the legacy account nonce, so a sender can have many of them plus a normal-nonce transaction outstanding at once. Apps that infer intent from the legacy nonce should authenticate it explicitly.
- Verifiers that assumed
TXPARAM(0x01)is the account nonce must reject or handle the sentinel. - If EIP-8250 keyed nonces also ship, the spec suggests (non-normatively) folding this mode in as a reserved key.