{"eip":8099,"title":"MEVless Protocol","description":"A protocol that prevents MEV attacks by constraining transaction ordering through blind sequencing and two-phase block execution.","authors":["Lawliet Chan (@lawliet-chan)"],"status":"Draft","type":"Standards Track","category":"Core","created":"2025-09-25","discussionsTo":"https://ethereum-magicians.org/t/mevless-an-anti-mev-protocol/26800","repo":"EIPs","label":"EIP-8099","officialUrl":"https://eips.ethereum.org/EIPS/eip-8099","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8099.md","url":"https://eips.huatuo.xyz/eip-8099/","tldr":{"en":"A proposal to stop sandwich attacks and front-running by having the chain order transactions by their hashes first, and only reveal and execute their contents in the following block.","ja":"チェーンがまずハッシュでトランザクションを並べ、その内容は次のブロックで初めて公開して実行することで、サンドイッチ攻撃とフロントランニングを防ぐ提案。","ko":"체인이 먼저 트랜잭션을 해시로 정렬하고, 내용은 다음 블록에서야 공개하고 실행하게 함으로써 샌드위치 공격과 프런트러닝을 막자는 제안.","zh":"一项旨在阻止三明治攻击和抢跑的提案：让链先按交易哈希排序，到下一个区块才揭示并执行交易内容。"},"tags":["mev","ordering","mempool","core","consensus"],"explainers":{"en":{"lang":"en","tldr":"A proposal to stop sandwich attacks and front-running by having the chain order transactions by their hashes first, and only reveal and execute their contents in the following block.","tags":["mev","ordering","mempool","core","consensus"],"related":[8184,7732,1559],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-8099/","markdown":"## What problem does it solve?\n\nMaximal Extractable Value (MEV) attacks such as sandwiching and front-running all rely on one thing: whoever orders the transactions in a block can read them first. If a block producer sees a large swap in the mempool, it can place its own trade before and after it and pocket the price movement.\n\nExisting mitigations each have a catch, according to the author: encrypted mempools add encryption/decryption overhead, private mempools rely on trusted operators, and proposer-builder separation still lets builders see transaction content. MEVless tries to remove the prerequisite itself: the party that fixes the order should never see what it is ordering.\n\n## How it works\n\nBlock production is split into two alternating phases:\n\n- **Sequencing blocks** (odd heights). Users submit only the **hash** of their transaction plus a **prepayment**: a fixed base fee for storing and sequencing the hash, plus an optional tip. The network checks the sender can pay, deducts the prepayment, sorts the hashes by prepayment (highest first) and publishes that order as a commitment. The spec allows sequencing blocks to come at shorter intervals than execution blocks.\n- **Execution blocks** (even heights). Users watch for their hash in the committed sequence, then submit the full transaction (with the remaining gas fee). The network checks the content matches the committed hash and executes everything in the already-fixed order.\n\nTo stop someone from reserving a huge gas limit and effectively claiming a whole block, the remaining fee is charged together with a \"tax\" of 50 % of the gap between `gasLimit` and `gasUsed`.\n\nThe design leans on **unpredictable block producer selection**. If a producer knew it would build the next block, it could submit hashes speculatively, see other users' revealed contents, and only reveal its own transactions when profitable, recovering the prepayment through its own fees. Random selection makes those prepayments a real cost.\n\n## Sample code\n\nThe spec proposes two new JSON-RPC methods. Their exact parameters are not defined, so this is an illustrative flow only:\n\n```ts\nimport { JsonRpcProvider, Wallet, keccak256 } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst wallet = new Wallet(process.env.PRIVATE_KEY!, provider);\n\n// 1. Sign the transaction locally, but only publish its hash + prepayment\nconst signed = await wallet.signTransaction(await wallet.populateTransaction(myTx));\nconst txHash = keccak256(signed);\nawait provider.send(\"eth_sendTxHash\", [txHash /*, prepayment params (unspecified) */]);\n\n// 2. Wait until the hash appears in the committed sequence\nconst seq: string[] = await provider.send(\"eth_getTxSequence\", []);\nif (seq.includes(txHash)) {\n  // 3. Reveal the full transaction for the execution block\n  await provider.broadcastTransaction(signed);\n}\n```\n\n## Things to know\n\n- **Status: Draft.** This is an early proposal; it is not scheduled for any Ethereum upgrade and its details may change substantially.\n- The spec is high level: fee amounts, the exact commitment format, what happens to unrevealed hashes, and the RPC parameters are not pinned down.\n- It assumes a consensus mechanism with unpredictable block producers. Ethereum's proposer schedule is known in advance within an epoch, so this assumption deserves scrutiny.\n- Ordering by prepayment is still a priority auction; it hides content, not the existence or bid of a transaction.\n- For a different approach to hiding transaction contents until ordering is fixed, see the encrypted mempool proposal [EIP-8184](/eip-8184/).\n"},"ja":{"lang":"ja","tldr":"チェーンがまずハッシュでトランザクションを並べ、その内容は次のブロックで初めて公開して実行することで、サンドイッチ攻撃とフロントランニングを防ぐ提案。","tags":["mev","ordering","mempool","core","consensus"],"related":[8184,7732,1559],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-8099/","markdown":"## 何を解決するのか\n\nサンドイッチやフロントランニングのような Maximal Extractable Value（MEV）攻撃は、すべて 1 つのことに依存しています。ブロック内のトランザクションの順序を決める者が、それを最初に読めることです。ブロックプロデューサーがメンプールで大きなスワップを見つければ、その前後に自分の取引を置いて、価格変動分を手に入れられます。\n\n既存の緩和策にはそれぞれ欠点があると著者は述べています。暗号化メンプールは暗号化／復号のオーバーヘッドを伴い、プライベートメンプールは信頼できる運営者に依存し、proposer-builder separation でもビルダーはトランザクションの内容を見られます。MEVless は前提そのものを取り除こうとします。順序を確定する当事者は、自分が並べているものを決して見るべきではない、というものです。\n\n## 仕組み\n\nブロック生成は、交互に現れる 2 つのフェーズに分かれます。\n\n- **シーケンシングブロック**（奇数の高さ）。ユーザーは、トランザクションの**ハッシュ**と**前払い**だけを提出します。前払いは、ハッシュの保存とシーケンシングのための固定のベースフィーと、任意のチップです。ネットワークは送信者が支払えるかを確認し、前払い分を差し引き、前払い額の高い順にハッシュを並べ替え、その順序をコミットメントとして公開します。仕様では、シーケンシングブロックを実行ブロックより短い間隔で生成することも許されています。\n- **実行ブロック**（偶数の高さ）。ユーザーはコミットされたシーケンスに自分のハッシュが現れるのを見届けてから、完全なトランザクション（残りのガス代付き）を提出します。ネットワークは内容がコミットされたハッシュと一致することを確認し、すべてを既に確定した順序で実行します。\n\n誰かが巨大なガスリミットを確保して実質的にブロック全体を占有するのを防ぐため、残りの手数料は、`gasLimit` と `gasUsed` の差の 50 % の「税」とともに課されます。\n\nこの設計は、**予測不能なブロックプロデューサーの選出**に依存しています。プロデューサーが次のブロックを作ると分かっていれば、投機的にハッシュを提出し、ほかのユーザーが公開した内容を見て、利益になるときだけ自分のトランザクションを公開し、自分の手数料で前払いを回収できてしまいます。ランダムな選出により、その前払いが実質的なコストになります。\n\n## サンプルコード\n\n仕様は 2 つの新しい JSON-RPC メソッドを提案しています。正確なパラメータは定義されていないため、これは説明用のフローにすぎません。\n\n```ts\nimport { JsonRpcProvider, Wallet, keccak256 } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst wallet = new Wallet(process.env.PRIVATE_KEY!, provider);\n\n// 1. Sign the transaction locally, but only publish its hash + prepayment\nconst signed = await wallet.signTransaction(await wallet.populateTransaction(myTx));\nconst txHash = keccak256(signed);\nawait provider.send(\"eth_sendTxHash\", [txHash /*, prepayment params (unspecified) */]);\n\n// 2. Wait until the hash appears in the committed sequence\nconst seq: string[] = await provider.send(\"eth_getTxSequence\", []);\nif (seq.includes(txHash)) {\n  // 3. Reveal the full transaction for the execution block\n  await provider.broadcastTransaction(signed);\n}\n```\n\n## 知っておくべきこと\n\n- **ステータス: Draft。** 初期段階の提案です。どの Ethereum アップグレードにも予定されておらず、詳細は大きく変わる可能性があります。\n- 仕様は概要レベルです。手数料の額、コミットメントの正確な形式、公開されなかったハッシュの扱い、RPC のパラメータは確定していません。\n- 予測不能なブロックプロデューサーを持つコンセンサスメカニズムを前提としています。Ethereum の提案者スケジュールはエポック内で事前に分かっているため、この前提は精査に値します。\n- 前払いによる順序付けは、依然として優先度オークションです。隠されるのは内容であり、トランザクションの存在や入札額ではありません。\n- 順序が確定するまでトランザクションの内容を隠す別のアプローチについては、暗号化メンプールの提案 [EIP-8184](/eip-8184/) を参照してください。\n"},"ko":{"lang":"ko","tldr":"체인이 먼저 트랜잭션을 해시로 정렬하고, 내용은 다음 블록에서야 공개하고 실행하게 함으로써 샌드위치 공격과 프런트러닝을 막자는 제안.","tags":["mev","ordering","mempool","core","consensus"],"related":[8184,7732,1559],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-8099/","markdown":"## 어떤 문제를 해결하나요?\n\n샌드위치, 프런트러닝 같은 Maximal Extractable Value(MEV) 공격은 모두 한 가지에 의존합니다. 블록 안의 트랜잭션 순서를 정하는 쪽이 그 내용을 먼저 읽을 수 있다는 점입니다. 블록 생성자가 멤풀에서 큰 스왑을 보면 그 앞뒤에 자기 거래를 끼워 넣어 가격 변동분을 챙길 수 있습니다.\n\n저자에 따르면 기존 완화책에는 각각 한계가 있습니다. 암호화 멤풀은 암호화/복호화 오버헤드가 있고, 프라이빗 멤풀은 신뢰할 수 있는 운영자에 의존하며, proposer-builder separation에서도 빌더는 트랜잭션 내용을 볼 수 있습니다. MEVless는 전제 자체를 없애려 합니다. 순서를 확정하는 쪽은 자기가 정렬하는 것이 무엇인지 절대 봐서는 안 된다는 것입니다.\n\n## 어떻게 동작하나요?\n\n블록 생산은 번갈아 나타나는 두 단계로 나뉩니다.\n\n- **시퀀싱 블록**(홀수 높이). 사용자는 트랜잭션의 **해시**와 **선납금**만 제출합니다. 선납금은 해시를 저장하고 순서를 매기기 위한 고정 기본 수수료와 선택적인 팁입니다. 네트워크는 송신자가 낼 수 있는지 확인하고, 선납금을 차감하고, 선납금이 높은 순으로 해시를 정렬한 뒤 그 순서를 커밋먼트로 발표합니다. 사양은 시퀀싱 블록이 실행 블록보다 짧은 간격으로 나오는 것을 허용합니다.\n- **실행 블록**(짝수 높이). 사용자는 커밋된 시퀀스에서 자기 해시가 나타나는 것을 확인한 뒤 전체 트랜잭션(남은 가스 수수료 포함)을 제출합니다. 네트워크는 내용이 커밋된 해시와 일치하는지 확인하고, 이미 확정된 순서대로 모든 것을 실행합니다.\n\n누군가 거대한 가스 한도를 예약해 사실상 블록 전체를 차지하는 것을 막기 위해, 남은 수수료는 `gasLimit`과 `gasUsed` 차이의 50 %에 해당하는 \"세금\"과 함께 부과됩니다.\n\n이 설계는 **예측할 수 없는 블록 생성자 선택**에 기대고 있습니다. 생성자가 자신이 다음 블록을 만들게 된다는 것을 안다면, 해시를 투기적으로 제출하고, 다른 사용자가 공개한 내용을 본 다음, 이득이 될 때만 자기 트랜잭션을 공개해 자기 수수료로 선납금을 회수할 수 있습니다. 무작위 선택은 그 선납금을 실제 비용으로 만듭니다.\n\n## 샘플 코드\n\n사양은 새로운 JSON-RPC 메서드 두 개를 제안합니다. 정확한 파라미터는 정의되어 있지 않으므로 이것은 설명용 흐름일 뿐입니다.\n\n```ts\nimport { JsonRpcProvider, Wallet, keccak256 } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst wallet = new Wallet(process.env.PRIVATE_KEY!, provider);\n\n// 1. Sign the transaction locally, but only publish its hash + prepayment\nconst signed = await wallet.signTransaction(await wallet.populateTransaction(myTx));\nconst txHash = keccak256(signed);\nawait provider.send(\"eth_sendTxHash\", [txHash /*, prepayment params (unspecified) */]);\n\n// 2. Wait until the hash appears in the committed sequence\nconst seq: string[] = await provider.send(\"eth_getTxSequence\", []);\nif (seq.includes(txHash)) {\n  // 3. Reveal the full transaction for the execution block\n  await provider.broadcastTransaction(signed);\n}\n```\n\n## 알아둘 점\n\n- **상태: Draft.** 초기 제안입니다. 어떤 이더리움 업그레이드에도 예정되어 있지 않으며 세부 내용이 크게 바뀔 수 있습니다.\n- 사양은 개략적입니다. 수수료 금액, 정확한 커밋먼트 형식, 공개되지 않은 해시의 처리, RPC 파라미터는 확정되지 않았습니다.\n- 예측할 수 없는 블록 생성자가 있는 합의 메커니즘을 전제로 합니다. 이더리움의 제안자 일정은 한 epoch 안에서 미리 알려져 있으므로 이 전제는 검토가 필요합니다.\n- 선납금에 의한 정렬은 여전히 우선순위 경매입니다. 숨겨지는 것은 내용이지 트랜잭션의 존재나 입찰가가 아닙니다.\n- 순서가 확정될 때까지 트랜잭션 내용을 숨기는 다른 접근 방식은 암호화 멤풀 제안 [EIP-8184](/eip-8184/)를 참고하세요.\n"},"zh":{"lang":"zh","tldr":"一项旨在阻止三明治攻击和抢跑的提案：让链先按交易哈希排序，到下一个区块才揭示并执行交易内容。","tags":["mev","ordering","mempool","core","consensus"],"related":[8184,7732,1559],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-8099/","markdown":"## 它解决什么问题？\n\n三明治攻击、抢跑等最大可提取价值（MEV）攻击，都依赖同一件事：给区块中的交易排序的人可以先读到它们。如果区块生产者在内存池里看到一笔大额兑换，就可以把自己的交易放在它的前后，赚走价格变动带来的差价。\n\n作者指出，现有的缓解办法各有缺陷：加密内存池带来加解密开销，私有内存池依赖受信任的运营者，提议者-构建者分离（PBS）仍然让构建者看到交易内容。MEVless 试图直接消除这个前提：确定顺序的一方永远不应看到自己在排序的是什么。\n\n## 它如何运作\n\n区块生产分为交替出现的两个阶段：\n\n- **排序区块**（奇数高度）。用户只提交交易的**哈希**和一笔**预付款**：包括用于存储和排序该哈希的固定基础费用，以及可选的小费。网络检查发送方是否付得起，扣除预付款，按预付款从高到低对哈希排序，并把这一顺序作为承诺发布。规范允许排序区块的出块间隔比执行区块更短。\n- **执行区块**（偶数高度）。用户在已承诺的序列中看到自己的哈希之后，再提交完整交易（附上剩余的 gas 费用）。网络检查内容是否与已承诺的哈希一致，并按已经固定的顺序执行一切。\n\n为了防止有人预留巨大的 gas 上限、实际上占满整个区块，剩余费用在收取时会附加一笔\"税\"，金额为 `gasLimit` 与 `gasUsed` 之差的 50 %。\n\n这一设计依赖**不可预测的区块生产者选择**。如果生产者知道自己将构建下一个区块，就可以投机性地提交哈希，看到其他用户已揭示的内容，只在有利可图时才揭示自己的交易，并通过自己的手续费收回预付款。随机选择让这些预付款成为真实的成本。\n\n## 示例代码\n\n规范提出了两个新的 JSON-RPC 方法。其确切参数尚未定义，因此这只是一个说明性流程：\n\n```ts\nimport { JsonRpcProvider, Wallet, keccak256 } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst wallet = new Wallet(process.env.PRIVATE_KEY!, provider);\n\n// 1. Sign the transaction locally, but only publish its hash + prepayment\nconst signed = await wallet.signTransaction(await wallet.populateTransaction(myTx));\nconst txHash = keccak256(signed);\nawait provider.send(\"eth_sendTxHash\", [txHash /*, prepayment params (unspecified) */]);\n\n// 2. Wait until the hash appears in the committed sequence\nconst seq: string[] = await provider.send(\"eth_getTxSequence\", []);\nif (seq.includes(txHash)) {\n  // 3. Reveal the full transaction for the execution block\n  await provider.broadcastTransaction(signed);\n}\n```\n\n## 需要注意\n\n- **状态：Draft。** 这是一个早期提案；没有排入任何以太坊升级，细节可能发生很大变化。\n- 规范比较笼统：费用金额、承诺的具体格式、未揭示哈希的处理方式以及 RPC 参数都没有确定。\n- 它假设共识机制中的区块生产者不可预测。以太坊的提议者调度在一个 epoch 内是提前已知的，所以这一假设值得仔细审视。\n- 按预付款排序仍然是一种优先级拍卖；它隐藏的是内容，而不是交易的存在或出价。\n- 关于在顺序确定之前隐藏交易内容的另一种方法，请参阅加密内存池提案 [EIP-8184](/eip-8184/)。\n"}}}
