---
eip: 8266
label: EIP-8266
title: Expiring Nonces for Frame Transactions
status: Draft
type: Standards Track
category: Core
created: 2026-05-15
requires: 8141
official: https://eips.ethereum.org/EIPS/eip-8266
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8266.md
canonical: https://eips.huatuo.xyz/eip-8266/
lang: en
tldr: 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.
tags: [account-abstraction, nonces, intents, frame-transactions, core]
---

# EIP-8266: Expiring Nonces for Frame Transactions

> Short-lived replay protection for frame transactions via a sig-hash ring buffer

**TL;DR:** 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](/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 `nonce` equals `2^64 - 1` is in expiring-nonce mode. The account nonce is neither checked nor incremented.
- **Deadline.** The transaction must contain exactly one `VERIFY` frame targeting EIP-8141's existing expiry verifier, whose 8-byte data is the deadline `d`. It must satisfy `now <= d <= now + 60` seconds.
- **Seen check.** A system contract `NONCE_RING` stores, per signature hash `h`, 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, `h` is 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 with `BufferFull` instead 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:

```python
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](/eip-8141/), also a Draft; the `NONCE_RING` address 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](/eip-8250/) keyed nonces also ship, the spec suggests (non-normatively) folding this mode in as a reserved key.


---

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