EIP-8077 · Draft · Networking · 2025-11-07
EIP-8077: eth/XX - announce transactions with nonce
A new devp2p `eth` protocol version whose transaction announcements also carry each transaction's sender and nonce, so nodes can fetch transactions in order, fill nonce gaps and drop stale ones without guessing.
What problem does it solve?
Ethereum nodes share pending transactions in two ways: they push small transactions in full to a few peers, and announce the rest with NewPooledTransactionHashes so peers can pull what they want. Large and blob (EIP-4844) transactions are only ever announced. Today an announcement carries just type, size and hash.
With only a hash, the receiving node is fetching blind:
- It may pull a transaction whose earlier nonce it does not have, leaving a gap that makes the transaction non-includable.
- Filling a gap is trial and error: request more hashes and hope.
- To ignore already-mined transactions it must keep a cache of on-chain hashes instead of simply comparing nonces with state.
- It cannot prioritise transactions from specific senders.
As throughput grows and nodes may not be able to fetch everything, smarter selective fetching matters more.
How it works
The NewPooledTransactionHashes (0x08) message gains two parallel lists in a new protocol version (eth/XX, building on eth/69 from EIP-7642):
eth/69: [txtypes, [txsize...], [txhash...]]
eth/XX: [txtypes, [txsize...], [txhash...], [txsource...], [txnonce...]]
txsource(20 bytes) is the account whose nonce the transaction consumes; for normal types0x00–0x04it is the address recovered from the signature.txnonceis the nonce it consumes.
Senders just include the extra data. Receivers may use it for scheduling (fetch in nonce order, fill gaps, skip nonces below the current account nonce); the exact policy is left to clients.
For the frame transactions of EIP-8141, txsource is the explicit sender field. If EIP-8250 keyed nonces are active, txnonce is only a sequence value, and receivers must not compare it with the account nonce or use <source, nonce> as that transaction's identity.
Sample code
RLP shape of an announcement for two transactions (pseudocode):
announcement = [
bytes([0x02, 0x03]), # txtypes: one byte per tx
[180, 131_200], # txsize
[hash_a, hash_b], # 32-byte hashes
[sender_a, sender_b], # 20-byte addresses (new)
[41, 7], # nonces (new)
]
msg = rlp.encode(announcement) # sent as message 0x08
A receiver-side filter using the new fields:
for t, size, h, src, nonce in zip(*announcement):
if t in FRAME_TX_TYPES:
continue # nonce may be a keyed sequence; don't compare
if nonce < state_nonce(src):
continue # already mined, skip without a hash cache
schedule_fetch(h, priority=(src, nonce))
Things to know
- Status: Draft. The protocol version number is still a placeholder (
eth/XX). - Networking-only: no hard fork. Old and new clients interoperate by negotiating protocol versions.
- Announcements become larger (an extra 20-byte address plus a nonce per transaction); the authors consider it worth it but the overhead analysis is marked TODO.
- Announced source and nonce are unverified until the transaction is fetched. A mismatch with the fetched transaction should be treated as a protocol violation by the announcing peer, and nodes should rate-limit before doing state lookups driven by announced addresses.