{"eip":8077,"title":"eth/XX - announce transactions with nonce","description":"Adds source and nonce to transaction announcements","authors":["Csaba Kiraly (@cskiraly)"],"status":"Draft","type":"Standards Track","category":"Networking","created":"2025-11-07","requires":[7642],"discussionsTo":"https://ethereum-magicians.org/t/eip-8077-eth-xx-add-nonce-and-source-to-transactions-announcement/26505","repo":"EIPs","label":"EIP-8077","officialUrl":"https://eips.ethereum.org/EIPS/eip-8077","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8077.md","url":"https://eips.huatuo.xyz/eip-8077/","tldr":{"en":"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.","ja":"devp2p `eth` プロトコルの新バージョン。トランザクションのアナウンスに各トランザクションの送信者と nonce も載せ、ノードが推測なしで、順序どおりに取得し、nonce の欠落を埋め、古いものを捨てられるようにする。","ko":"트랜잭션 공지에 각 트랜잭션의 송신자와 nonce도 함께 싣는 새로운 devp2p `eth` 프로토콜 버전. 노드가 추측 없이 트랜잭션을 순서대로 가져오고, nonce 공백을 메우고, 오래된 트랜잭션을 버릴 수 있게 한다.","zh":"一个新的 devp2p `eth` 协议版本，其交易公告还会携带每笔交易的发送方和 nonce，让节点无需猜测，就能按顺序获取交易、填补 nonce 空缺并丢弃过期交易。"},"tags":["networking","devp2p","mempool","transactions","p2p"],"explainers":{"en":{"lang":"en","tldr":"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.","tags":["networking","devp2p","mempool","transactions","p2p"],"related":[7642,4844,8141,8250],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-8077/","markdown":"## What problem does it solve?\n\nEthereum 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](/eip-4844/)) transactions are only ever announced. Today an announcement carries just type, size and hash.\n\nWith only a hash, the receiving node is fetching blind:\n\n- It may pull a transaction whose earlier nonce it does not have, leaving a gap that makes the transaction non-includable.\n- Filling a gap is trial and error: request more hashes and hope.\n- To ignore already-mined transactions it must keep a cache of on-chain hashes instead of simply comparing nonces with state.\n- It cannot prioritise transactions from specific senders.\n\nAs throughput grows and nodes may not be able to fetch everything, smarter selective fetching matters more.\n\n## How it works\n\nThe `NewPooledTransactionHashes` (0x08) message gains two parallel lists in a new protocol version (`eth/XX`, building on eth/69 from [EIP-7642](/eip-7642/)):\n\n```\neth/69: [txtypes, [txsize...], [txhash...]]\neth/XX: [txtypes, [txsize...], [txhash...], [txsource...], [txnonce...]]\n```\n\n- `txsource` (20 bytes) is the account whose nonce the transaction consumes; for normal types `0x00`–`0x04` it is the address recovered from the signature.\n- `txnonce` is the nonce it consumes.\n\nSenders 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.\n\nFor the frame transactions of [EIP-8141](/eip-8141/), `txsource` is the explicit `sender` field. If [EIP-8250](/eip-8250/) keyed nonces are active, `txnonce` is only a sequence value, and receivers must not compare it with the account nonce or use `\u003csource, nonce\u003e` as that transaction's identity.\n\n## Sample code\n\nRLP shape of an announcement for two transactions (pseudocode):\n\n```python\nannouncement = [\n    bytes([0x02, 0x03]),                    # txtypes: one byte per tx\n    [180, 131_200],                         # txsize\n    [hash_a, hash_b],                       # 32-byte hashes\n    [sender_a, sender_b],                   # 20-byte addresses (new)\n    [41, 7],                                # nonces (new)\n]\nmsg = rlp.encode(announcement)              # sent as message 0x08\n```\n\nA receiver-side filter using the new fields:\n\n```python\nfor t, size, h, src, nonce in zip(*announcement):\n    if t in FRAME_TX_TYPES:\n        continue                            # nonce may be a keyed sequence; don't compare\n    if nonce \u003c state_nonce(src):\n        continue                            # already mined, skip without a hash cache\n    schedule_fetch(h, priority=(src, nonce))\n```\n\n## Things to know\n\n- **Status: Draft.** The protocol version number is still a placeholder (`eth/XX`).\n- Networking-only: no hard fork. Old and new clients interoperate by negotiating protocol versions.\n- 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.\n- 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.\n"},"ja":{"lang":"ja","tldr":"devp2p `eth` プロトコルの新バージョン。トランザクションのアナウンスに各トランザクションの送信者と nonce も載せ、ノードが推測なしで、順序どおりに取得し、nonce の欠落を埋め、古いものを捨てられるようにする。","tags":["networking","devp2p","mempool","transactions","p2p"],"related":[7642,4844,8141,8250],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-8077/","markdown":"## 何を解決するのか\n\nEthereum ノードは保留中のトランザクションを 2 通りの方法で共有します。小さなトランザクションは全体を少数のピアに**プッシュ**し、残りは `NewPooledTransactionHashes` で**アナウンス**して、ピアが欲しいものを取得（pull）できるようにします。大きなトランザクションと blob（[EIP-4844](/eip-4844/)）トランザクションは、アナウンスのみです。現状のアナウンスには、タイプ、サイズ、ハッシュしか含まれません。\n\nハッシュだけでは、受信側のノードは手探りで取得することになります。\n\n- 自分が持っていない前の nonce があるトランザクションを取得してしまい、そのトランザクションがブロックに含められない欠落ができることがあります。\n- 欠落を埋めるのは試行錯誤です。さらにハッシュを要求して、当たりを期待するしかありません。\n- マイニング済みのトランザクションを無視するには、nonce をステートと比べるだけでなく、オンチェーンのハッシュのキャッシュを持つ必要があります。\n- 特定の送信者のトランザクションを優先することができません。\n\nスループットが上がり、ノードがすべてを取得できなくなる可能性が高まるほど、より賢い選択的取得が重要になります。\n\n## 仕組み\n\n`NewPooledTransactionHashes`（0x08）メッセージに、新しいプロトコルバージョン（`eth/XX`、[EIP-7642](/eip-7642/) の eth/69 をベースにしたもの）で 2 つの並列リストが加わります。\n\n```\neth/69: [txtypes, [txsize...], [txhash...]]\neth/XX: [txtypes, [txsize...], [txhash...], [txsource...], [txnonce...]]\n```\n\n- `txsource`（20 バイト）は、そのトランザクションが nonce を消費するアカウントです。通常のタイプ `0x00`〜`0x04` では、署名から復元したアドレスです。\n- `txnonce` は、それが消費する nonce です。\n\n送信側は追加のデータを含めるだけです。受信側はそれをスケジューリングに使って*もかまいません*（nonce 順に取得する、欠落を埋める、現在のアカウント nonce より小さい nonce をスキップする）。具体的な方針はクライアントに任されています。\n\n[EIP-8141](/eip-8141/) のフレームトランザクションでは、`txsource` は明示的な `sender` フィールドです。[EIP-8250](/eip-8250/) の keyed nonce が有効な場合、`txnonce` は単なるシーケンス値であり、受信側はそれをアカウントの nonce と比較したり、`\u003csource, nonce\u003e` をそのトランザクションの識別子として使ったりしてはいけません。\n\n## サンプルコード\n\n2 つのトランザクションのアナウンスの RLP 構造（疑似コード）:\n\n```python\nannouncement = [\n    bytes([0x02, 0x03]),                    # txtypes: one byte per tx\n    [180, 131_200],                         # txsize\n    [hash_a, hash_b],                       # 32-byte hashes\n    [sender_a, sender_b],                   # 20-byte addresses (new)\n    [41, 7],                                # nonces (new)\n]\nmsg = rlp.encode(announcement)              # sent as message 0x08\n```\n\n新しいフィールドを使う受信側のフィルター:\n\n```python\nfor t, size, h, src, nonce in zip(*announcement):\n    if t in FRAME_TX_TYPES:\n        continue                            # nonce may be a keyed sequence; don't compare\n    if nonce \u003c state_nonce(src):\n        continue                            # already mined, skip without a hash cache\n    schedule_fetch(h, priority=(src, nonce))\n```\n\n## 知っておくべきこと\n\n- **ステータス: Draft。** プロトコルのバージョン番号はまだプレースホルダー（`eth/XX`）です。\n- ネットワークのみの変更で、ハードフォークは不要です。新旧のクライアントは、プロトコルバージョンをネゴシエートすることで相互運用できます。\n- アナウンスは大きくなります（トランザクションごとに 20 バイトのアドレスと nonce が追加されます）。著者らは見合う価値があると考えていますが、オーバーヘッドの分析は TODO とされています。\n- アナウンスされた source と nonce は、トランザクションを取得するまで未検証です。取得したトランザクションと食い違う場合は、アナウンスしたピアによるプロトコル違反として扱うべきで、ノードはアナウンスされたアドレスによるステート参照を行う前にレート制限をかけるべきです。\n"},"ko":{"lang":"ko","tldr":"트랜잭션 공지에 각 트랜잭션의 송신자와 nonce도 함께 싣는 새로운 devp2p `eth` 프로토콜 버전. 노드가 추측 없이 트랜잭션을 순서대로 가져오고, nonce 공백을 메우고, 오래된 트랜잭션을 버릴 수 있게 한다.","tags":["networking","devp2p","mempool","transactions","p2p"],"related":[7642,4844,8141,8250],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-8077/","markdown":"## 어떤 문제를 해결하나요?\n\n이더리움 노드는 대기 중인 트랜잭션을 두 가지 방식으로 공유합니다. 작은 트랜잭션은 전체를 일부 피어에게 **푸시**하고, 나머지는 `NewPooledTransactionHashes`로 **공지**해서 피어가 원하는 것을 가져가도록 합니다. 큰 트랜잭션과 blob([EIP-4844](/eip-4844/)) 트랜잭션은 공지만 합니다. 지금의 공지에는 타입, 크기, 해시만 들어 있습니다.\n\n해시만 있으면 받는 노드는 눈을 감고 가져오는 셈입니다.\n\n- 자신에게 없는 이전 nonce가 필요한 트랜잭션을 가져와, 그 트랜잭션이 포함될 수 없게 만드는 공백이 생길 수 있습니다.\n- 공백을 메우는 것은 시행착오입니다. 해시를 더 요청하고 운에 맡깁니다.\n- 이미 채굴된 트랜잭션을 무시하려면 nonce를 상태와 단순 비교하는 대신 온체인 해시 캐시를 유지해야 합니다.\n- 특정 송신자의 트랜잭션을 우선 처리할 수 없습니다.\n\n처리량이 늘어나 노드가 모든 것을 가져오지 못할 수 있게 될수록 더 똑똑한 선택적 가져오기가 중요해집니다.\n\n## 어떻게 동작하나요?\n\n`NewPooledTransactionHashes`(0x08) 메시지는 새 프로토콜 버전(`eth/XX`, [EIP-7642](/eip-7642/)의 eth/69 기반)에서 두 개의 병렬 리스트를 얻습니다.\n\n```\neth/69: [txtypes, [txsize...], [txhash...]]\neth/XX: [txtypes, [txsize...], [txhash...], [txsource...], [txnonce...]]\n```\n\n- `txsource`(20바이트)는 해당 트랜잭션이 nonce를 소모하는 계정입니다. 일반 타입 `0x00`–`0x04`에서는 서명에서 복구한 주소입니다.\n- `txnonce`는 그 트랜잭션이 소모하는 nonce입니다.\n\n송신자는 추가 데이터를 포함하기만 하면 됩니다. 수신자는 이를 스케줄링에 *사용할 수 있습니다*(nonce 순서대로 가져오기, 공백 메우기, 현재 계정 nonce보다 작은 nonce 건너뛰기). 구체적인 정책은 클라이언트에 맡겨져 있습니다.\n\n[EIP-8141](/eip-8141/)의 frame 트랜잭션에서는 `txsource`가 명시적인 `sender` 필드입니다. [EIP-8250](/eip-8250/)의 keyed nonce가 활성화된 경우 `txnonce`는 단순한 시퀀스 값이며, 수신자는 이를 계정 nonce와 비교하거나 `\u003csource, nonce\u003e`를 그 트랜잭션의 식별자로 사용해서는 안 됩니다.\n\n## 샘플 코드\n\n트랜잭션 두 개에 대한 공지의 RLP 구조(의사 코드):\n\n```python\nannouncement = [\n    bytes([0x02, 0x03]),                    # txtypes: one byte per tx\n    [180, 131_200],                         # txsize\n    [hash_a, hash_b],                       # 32-byte hashes\n    [sender_a, sender_b],                   # 20-byte addresses (new)\n    [41, 7],                                # nonces (new)\n]\nmsg = rlp.encode(announcement)              # sent as message 0x08\n```\n\n새 필드를 사용하는 수신 측 필터:\n\n```python\nfor t, size, h, src, nonce in zip(*announcement):\n    if t in FRAME_TX_TYPES:\n        continue                            # nonce may be a keyed sequence; don't compare\n    if nonce \u003c state_nonce(src):\n        continue                            # already mined, skip without a hash cache\n    schedule_fetch(h, priority=(src, nonce))\n```\n\n## 알아둘 점\n\n- **상태: Draft.** 프로토콜 버전 번호는 아직 자리 표시자(`eth/XX`)입니다.\n- 네트워킹에만 해당하며 하드포크는 필요 없습니다. 새 클라이언트와 기존 클라이언트는 프로토콜 버전 협상으로 상호 운용됩니다.\n- 공지가 커집니다(트랜잭션마다 20바이트 주소와 nonce가 추가). 저자들은 그럴 만한 가치가 있다고 보지만 오버헤드 분석은 TODO로 표시되어 있습니다.\n- 공지된 source와 nonce는 트랜잭션을 가져오기 전까지 검증되지 않습니다. 가져온 트랜잭션과 맞지 않으면 공지한 피어의 프로토콜 위반으로 취급해야 하며, 노드는 공지된 주소에 따른 상태 조회를 하기 전에 속도 제한을 걸어야 합니다.\n"},"zh":{"lang":"zh","tldr":"一个新的 devp2p `eth` 协议版本，其交易公告还会携带每笔交易的发送方和 nonce，让节点无需猜测，就能按顺序获取交易、填补 nonce 空缺并丢弃过期交易。","tags":["networking","devp2p","mempool","transactions","p2p"],"related":[7642,4844,8141,8250],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-8077/","markdown":"## 它解决什么问题？\n\n以太坊节点通过两种方式共享待处理交易：把小交易**完整推送**给少数对等节点，并用 `NewPooledTransactionHashes` **公告**其余交易，让对等节点按需拉取。大交易和 blob 交易（[EIP-4844](/eip-4844/)）只会被公告。目前一条公告只包含类型、大小和哈希。\n\n只有哈希时，接收节点是在盲目获取：\n\n- 它可能拉取了一笔其前序 nonce 自己并没有的交易，造成空缺，使该交易无法被打包。\n- 填补空缺只能靠试错：请求更多哈希，然后碰运气。\n- 要忽略已被打包的交易，它必须维护一份链上哈希的缓存，而不能简单地拿 nonce 与状态比较。\n- 它无法优先处理来自特定发送方的交易。\n\n随着吞吐量增长，节点可能无法获取全部交易，更聪明的选择性获取就更重要了。\n\n## 它如何运作\n\n`NewPooledTransactionHashes`（0x08）消息在新的协议版本（`eth/XX`，基于 [EIP-7642](/eip-7642/) 的 eth/69）中增加了两个并行列表：\n\n```\neth/69: [txtypes, [txsize...], [txhash...]]\neth/XX: [txtypes, [txsize...], [txhash...], [txsource...], [txnonce...]]\n```\n\n- `txsource`（20 字节）是该交易消耗其 nonce 的账户；对于普通类型 `0x00`–`0x04`，它就是从签名中恢复出的地址。\n- `txnonce` 是它所消耗的 nonce。\n\n发送方只需附带这些额外数据。接收方*可以*用它们来调度（按 nonce 顺序获取、填补空缺、跳过小于当前账户 nonce 的交易）；具体策略交由客户端决定。\n\n对于 [EIP-8141](/eip-8141/) 的 frame 交易，`txsource` 是显式的 `sender` 字段。如果启用了 [EIP-8250](/eip-8250/) 的 keyed nonce，`txnonce` 就只是一个序列值，接收方不得把它与账户 nonce 比较，也不得把 `\u003csource, nonce\u003e` 当作该交易的标识。\n\n## 示例代码\n\n两笔交易的公告的 RLP 结构（伪代码）：\n\n```python\nannouncement = [\n    bytes([0x02, 0x03]),                    # txtypes: one byte per tx\n    [180, 131_200],                         # txsize\n    [hash_a, hash_b],                       # 32-byte hashes\n    [sender_a, sender_b],                   # 20-byte addresses (new)\n    [41, 7],                                # nonces (new)\n]\nmsg = rlp.encode(announcement)              # sent as message 0x08\n```\n\n接收方使用新字段的过滤器：\n\n```python\nfor t, size, h, src, nonce in zip(*announcement):\n    if t in FRAME_TX_TYPES:\n        continue                            # nonce may be a keyed sequence; don't compare\n    if nonce \u003c state_nonce(src):\n        continue                            # already mined, skip without a hash cache\n    schedule_fetch(h, priority=(src, nonce))\n```\n\n## 需要注意\n\n- **状态：Draft。** 协议版本号仍是占位符（`eth/XX`）。\n- 仅涉及网络层：无需硬分叉。新旧客户端通过协商协议版本实现互操作。\n- 公告会变大（每笔交易额外多出一个 20 字节的地址和一个 nonce）；作者认为值得，但开销分析仍标记为 TODO。\n- 在获取到交易之前，公告中的 source 和 nonce 都未经验证。如果与获取到的交易不一致，应将其视为发出公告的对等节点违反了协议；节点在根据公告地址进行状态查询之前，应先做速率限制。\n"}}}
