{"eip":7727,"title":"EVM Transaction Bundles","description":"Enable meta transactions to order other transactions without revert protections.","authors":["Lily Johnson (@lilyjjo)"],"status":"Stagnant","type":"Standards Track","category":"Core","created":"2024-06-24","requires":[2718],"discussionsTo":"https://ethereum-magicians.org/t/eip-7727-evm-transaction-bundles/20322","repo":"EIPs","label":"EIP-7727","officialUrl":"https://eips.ethereum.org/EIPS/eip-7727","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7727.md","url":"https://eips.huatuo.xyz/eip-7727/","tldr":{"en":"Proposes two new transaction types and a BUNDLE_SIGNER opcode so users and contracts can hand ordering rights to a chosen off-chain sequencer, creating EVM-native bundles that let apps rather than block builders capture sequencing value.","ja":"2 つの新しいトランザクションタイプと BUNDLE_SIGNER オペコードを提案する。ユーザーやコントラクトが選んだオフチェーンのシーケンサーに順序決定権を委ね、EVM ネイティブなバンドルによって、ブロックビルダーではなくアプリがシーケンシングの価値を獲得できるようにする。","ko":"새로운 트랜잭션 타입 두 개와 BUNDLE_SIGNER 오퍼코드를 제안한다. 사용자와 컨트랙트가 선택한 오프체인 시퀀서에 순서 결정권을 넘길 수 있게 하여, EVM 네이티브 번들로 블록 빌더가 아닌 앱이 시퀀싱 가치를 가져가게 한다.","zh":"提出两种新的交易类型和一个 BUNDLE_SIGNER 操作码，让用户和合约可以把排序权交给选定的链下排序器，创建 EVM 原生的捆绑交易（bundle），使应用而非区块构建者获取排序价值。"},"tags":["transactions","mev","bundles","sequencing","core"],"explainers":{"en":{"lang":"en","tldr":"Proposes two new transaction types and a BUNDLE_SIGNER opcode so users and contracts can hand ordering rights to a chosen off-chain sequencer, creating EVM-native bundles that let apps rather than block builders capture sequencing value.","tags":["transactions","mev","bundles","sequencing","core"],"related":[2718,1559],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7727/","markdown":"## What problem does it solve?\n\nToday one block builder decides the exact order of every transaction in a block. Order decides who touches a piece of state first, so it carries a lot of value (MEV), and that value flows to builders and searchers. Applications have no protocol-level way to say \"transactions touching my contract should be ordered by *this* party\".\n\nEIP-7727 adds bundles to the EVM itself: a transaction can name a `bundleSigner`, and only a bundle signed by that address can include it. Contracts can then check who sequenced a call and redirect ordering value back to the application.\n\n## How it works\n\nTwo new [EIP-2718](/eip-2718/) typed transactions and one opcode:\n\n- **Delegated transaction (`0x05`)**: a normal call (`nonce`, `gasPrice`, `gasLimit`, `to`, `value`, `data`) plus `bundleSigner` and an optional `blockNumber`. It is **only valid inside a bundle** signed by `bundleSigner`, and, if `blockNumber` is non-zero, only in that block.\n- **Bundle transaction (`0x06`)**: a \"meta\" transaction that does not execute code. It carries a `transactionList` of type-0x05 or nested type-0x06 transactions that all name the bundle's signer, and it fixes their order. Bundles can themselves name a `bundleSigner` and so be nested.\n- **`BUNDLE_SIGNER` opcode**: inside a delegated transaction it pushes the `bundleSigner`; otherwise it pushes the zero address. Gas cost is `GAS_VERY_LOW`.\n\n**No revert protection.** Unlike builder bundles, inner transactions are not all-or-nothing. An inner transaction that is invalid when its turn comes (bad nonce, insufficient funds) is skipped. The bundle signer pays for its bytes at the calldata rate plus a base cost; valid inner transactions cost the bundle signer nothing extra and pay their own gas.\n\n**Receipts:** a bundle's receipt holds a `statusArray`, one entry per inner transaction, with status `0x3` for invalid ones. Invalid delegated transactions get no receipt of their own.\n\n## Sample code\n\nPayload layouts from the spec (RLP):\n\n```text\n0x05 || rlp([bundleSigner, blockNumber, chainId, nonce, gasPrice,\n             gasLimit, to, value, data, yParity, r, s])\n\n0x06 || rlp([bundleSigner, blockNumber, chainId, nonce, gasPrice,\n             transactionList, yParity, r, s])\n\nbundle gas = BUNDLE_BASE_GAS_COST\n           + CALL_DATA_TOKEN_COST * invalid_inner_tx_bytes\n```\n\nA contract that only accepts calls sequenced by its own sequencer (illustrative; the opcode number is still TBD, so `bundleSigner()` stands in for it):\n\n```solidity\naddress public immutable sequencer;\n\nmodifier onlySequenced() {\n    require(bundleSigner() == sequencer, \"not sequenced\");\n    _;\n}\n```\n\n## Things to know\n\n- Status is **Stagnant**: no recent progress, and it is not scheduled for any upgrade. Constants such as `BUNDLE_BASE_GAS_COST` and the opcode number are still TBD.\n- The draft uses a legacy-style single `gasPrice` rather than [EIP-1559](/eip-1559/) fee fields.\n- Delegating ordering does not remove censorship risk; it moves it to the sequencer. The spec suggests running sequencing logic publicly and trust-minimised (for example in a TEE).\n- Contracts gated on `BUNDLE_SIGNER` should give users a way to withdraw funds that does not depend on the sequencer being online or honest.\n"},"ja":{"lang":"ja","tldr":"2 つの新しいトランザクションタイプと BUNDLE_SIGNER オペコードを提案する。ユーザーやコントラクトが選んだオフチェーンのシーケンサーに順序決定権を委ね、EVM ネイティブなバンドルによって、ブロックビルダーではなくアプリがシーケンシングの価値を獲得できるようにする。","tags":["transactions","mev","bundles","sequencing","core"],"related":[2718,1559],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7727/","markdown":"## 何を解決するのか\n\n現在は、1 つのブロックビルダーがブロック内のすべてのトランザクションの正確な順序を決めています。順序は、あるステートに誰が最初に触れるかを決めるため、大きな価値（MEV）を持ち、その価値はビルダーやサーチャーに流れます。アプリケーションには「自分のコントラクトに触れるトランザクションは*この*主体が順序付けする」と指定する、プロトコルレベルの手段がありません。\n\nEIP-7727 は EVM 自体にバンドルを追加します。トランザクションは `bundleSigner` を指定でき、そのアドレスが署名したバンドルだけがそれを含められます。コントラクトは、誰が呼び出しを順序付けしたかを確認し、順序付けの価値をアプリケーションに還元できます。\n\n## 仕組み\n\n新しい [EIP-2718](/eip-2718/) の型付きトランザクションが 2 つと、オペコードが 1 つあります。\n\n- **委任トランザクション（`0x05`）**: 通常の呼び出し（`nonce`、`gasPrice`、`gasLimit`、`to`、`value`、`data`）に、`bundleSigner` と任意の `blockNumber` が加わります。`bundleSigner` が署名したバンドルの**内部でのみ有効**で、`blockNumber` が 0 以外なら、そのブロックでのみ有効です。\n- **バンドルトランザクション（`0x06`）**: コードを実行しない「メタ」トランザクションです。そのバンドルの署名者を指定した type 0x05 または入れ子の type 0x06 のトランザクションの `transactionList` を持ち、それらの順序を固定します。バンドル自体も `bundleSigner` を指定でき、入れ子にできます。\n- **`BUNDLE_SIGNER` オペコード**: 委任トランザクション内では `bundleSigner` をプッシュし、それ以外ではゼロアドレスをプッシュします。ガスコストは `GAS_VERY_LOW` です。\n\n**revert 保護はありません。** ビルダーのバンドルと異なり、内側のトランザクションは all-or-nothing ではありません。自分の番が来たときに無効（nonce 不正、残高不足など）な内側のトランザクションはスキップされます。バンドル署名者は、自分のバイト分を calldata の料金に基本コストを加えた額で支払います。有効な内側のトランザクションがバンドル署名者に追加コストを生じさせることはなく、それぞれが自分のガスを支払います。\n\n**レシート:** バンドルのレシートには `statusArray` があり、内側のトランザクションごとに 1 要素で、無効なものはステータス `0x3` になります。無効な委任トランザクションには独自のレシートはありません。\n\n## サンプルコード\n\n仕様のペイロードレイアウト（RLP）:\n\n```text\n0x05 || rlp([bundleSigner, blockNumber, chainId, nonce, gasPrice,\n             gasLimit, to, value, data, yParity, r, s])\n\n0x06 || rlp([bundleSigner, blockNumber, chainId, nonce, gasPrice,\n             transactionList, yParity, r, s])\n\nbundle gas = BUNDLE_BASE_GAS_COST\n           + CALL_DATA_TOKEN_COST * invalid_inner_tx_bytes\n```\n\n自分のシーケンサーが順序付けした呼び出しだけを受け付けるコントラクト（説明用。オペコード番号は未定のため、代わりに `bundleSigner()` を使っています）:\n\n```solidity\naddress public immutable sequencer;\n\nmodifier onlySequenced() {\n    require(bundleSigner() == sequencer, \"not sequenced\");\n    _;\n}\n```\n\n## 知っておくべきこと\n\n- ステータスは **Stagnant** です。最近の進展はなく、どのアップグレードにも予定されていません。`BUNDLE_BASE_GAS_COST` などの定数やオペコード番号はまだ未定です。\n- ドラフトは [EIP-1559](/eip-1559/) の手数料フィールドではなく、従来型の単一の `gasPrice` を使っています。\n- 順序の委任は検閲リスクをなくしません。リスクがシーケンサーに移るだけです。仕様は、シーケンシングのロジックを公開された形で、信頼を最小化して（たとえば TEE で）運用することを提案しています。\n- `BUNDLE_SIGNER` でゲートされたコントラクトは、シーケンサーのオンライン状態や誠実さに依存しない資金引き出しの手段をユーザーに提供すべきです。\n"},"ko":{"lang":"ko","tldr":"새로운 트랜잭션 타입 두 개와 BUNDLE_SIGNER 오퍼코드를 제안한다. 사용자와 컨트랙트가 선택한 오프체인 시퀀서에 순서 결정권을 넘길 수 있게 하여, EVM 네이티브 번들로 블록 빌더가 아닌 앱이 시퀀싱 가치를 가져가게 한다.","tags":["transactions","mev","bundles","sequencing","core"],"related":[2718,1559],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7727/","markdown":"## 어떤 문제를 해결하나요?\n\n현재는 하나의 블록 빌더가 블록 안 모든 트랜잭션의 정확한 순서를 결정합니다. 순서는 어떤 상태를 누가 먼저 건드리는지를 정하므로 큰 가치(MEV)를 지니며, 그 가치는 빌더와 서처에게 흘러갑니다. 애플리케이션에는 \"내 컨트랙트를 건드리는 트랜잭션은 *이 주체*가 순서를 정해야 한다\"고 말할 수 있는 프로토콜 수준의 방법이 없습니다.\n\nEIP-7727은 EVM 자체에 번들을 추가합니다. 트랜잭션은 `bundleSigner`를 지정할 수 있고, 그 주소가 서명한 번들만 이를 포함할 수 있습니다. 컨트랙트는 누가 호출의 순서를 정했는지 확인하고, 순서의 가치를 애플리케이션에 돌려줄 수 있습니다.\n\n## 어떻게 동작하나요?\n\n새로운 [EIP-2718](/eip-2718/) 타입 트랜잭션 두 개와 오퍼코드 하나입니다.\n\n- **위임 트랜잭션(`0x05`)**: 일반 호출(`nonce`, `gasPrice`, `gasLimit`, `to`, `value`, `data`)에 `bundleSigner`와 선택적 `blockNumber`가 더해집니다. `bundleSigner`가 서명한 번들 **안에서만 유효**하며, `blockNumber`가 0이 아니면 해당 블록에서만 유효합니다.\n- **번들 트랜잭션(`0x06`)**: 코드를 실행하지 않는 \"메타\" 트랜잭션입니다. 번들 서명자를 지정한 type 0x05 또는 중첩된 type 0x06 트랜잭션의 `transactionList`를 담고 그 순서를 고정합니다. 번들 자체도 `bundleSigner`를 지정할 수 있어 중첩될 수 있습니다.\n- **`BUNDLE_SIGNER` 오퍼코드**: 위임 트랜잭션 안에서는 `bundleSigner`를 푸시하고, 그 외에는 제로 주소를 푸시합니다. 가스 비용은 `GAS_VERY_LOW`입니다.\n\n**revert 보호는 없습니다.** 빌더의 번들과 달리 내부 트랜잭션은 전부 성공하거나 전부 실패하는 방식이 아닙니다. 자기 차례가 왔을 때 유효하지 않은 내부 트랜잭션(잘못된 nonce, 잔액 부족)은 건너뜁니다. 번들 서명자는 자신의 바이트에 대해 calldata 요율에 기본 비용을 더한 금액을 지불합니다. 유효한 내부 트랜잭션은 번들 서명자에게 추가 비용을 발생시키지 않으며 각자 자신의 가스를 지불합니다.\n\n**영수증:** 번들의 영수증에는 `statusArray`가 있으며 내부 트랜잭션마다 항목 하나가 있고, 유효하지 않은 것은 상태가 `0x3`입니다. 유효하지 않은 위임 트랜잭션에는 자체 영수증이 없습니다.\n\n## 샘플 코드\n\n사양의 페이로드 레이아웃(RLP):\n\n```text\n0x05 || rlp([bundleSigner, blockNumber, chainId, nonce, gasPrice,\n             gasLimit, to, value, data, yParity, r, s])\n\n0x06 || rlp([bundleSigner, blockNumber, chainId, nonce, gasPrice,\n             transactionList, yParity, r, s])\n\nbundle gas = BUNDLE_BASE_GAS_COST\n           + CALL_DATA_TOKEN_COST * invalid_inner_tx_bytes\n```\n\n자신의 시퀀서가 순서를 정한 호출만 받는 컨트랙트(설명용. 오퍼코드 번호가 아직 미정이므로 `bundleSigner()`로 대신함):\n\n```solidity\naddress public immutable sequencer;\n\nmodifier onlySequenced() {\n    require(bundleSigner() == sequencer, \"not sequenced\");\n    _;\n}\n```\n\n## 알아둘 점\n\n- 상태는 **Stagnant**입니다. 최근 진전이 없고, 어떤 업그레이드에도 예정되어 있지 않습니다. `BUNDLE_BASE_GAS_COST` 같은 상수와 오퍼코드 번호는 아직 미정입니다.\n- 이 초안은 [EIP-1559](/eip-1559/)의 수수료 필드가 아니라 레거시 방식의 단일 `gasPrice`를 사용합니다.\n- 순서를 위임한다고 검열 위험이 사라지는 것은 아니며, 시퀀서로 옮겨갈 뿐입니다. 사양은 시퀀싱 로직을 공개적으로, 신뢰를 최소화한 방식(예: TEE)으로 운영할 것을 제안합니다.\n- `BUNDLE_SIGNER`로 게이트된 컨트랙트는 시퀀서가 온라인이거나 정직한지에 의존하지 않는 자금 인출 방법을 사용자에게 제공해야 합니다.\n"},"zh":{"lang":"zh","tldr":"提出两种新的交易类型和一个 BUNDLE_SIGNER 操作码，让用户和合约可以把排序权交给选定的链下排序器，创建 EVM 原生的捆绑交易（bundle），使应用而非区块构建者获取排序价值。","tags":["transactions","mev","bundles","sequencing","core"],"related":[2718,1559],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7727/","markdown":"## 它解决什么问题？\n\n如今由一个区块构建者决定区块中每笔交易的确切顺序。顺序决定谁先触及某个状态，因此蕴含大量价值（MEV），而这些价值流向了构建者和搜索者。应用在协议层面无法表达\"触及我的合约的交易应由*这一方*来排序\"。\n\nEIP-7727 把捆绑交易加入 EVM 本身：交易可以指定一个 `bundleSigner`，只有该地址签名的捆绑交易才能包含它。合约随后可以检查是谁对调用进行了排序，并把排序价值回流给应用。\n\n## 它如何运作\n\n两种新的 [EIP-2718](/eip-2718/) 类型化交易和一个操作码：\n\n- **委托交易（`0x05`）**：一次普通调用（`nonce`、`gasPrice`、`gasLimit`、`to`、`value`、`data`），加上 `bundleSigner` 和可选的 `blockNumber`。它**只在由 `bundleSigner` 签名的捆绑交易内有效**；如果 `blockNumber` 非零，则只在该区块有效。\n- **捆绑交易（`0x06`）**：一种不执行代码的\"元\"交易。它携带一个 `transactionList`，其中是都指定该捆绑交易签名者的 0x05 或嵌套的 0x06 类型交易，并固定它们的顺序。捆绑交易本身也可以指定 `bundleSigner`，因此可以嵌套。\n- **`BUNDLE_SIGNER` 操作码**：在委托交易内它压入 `bundleSigner`；否则压入零地址。Gas 成本为 `GAS_VERY_LOW`。\n\n**没有回滚保护。**与构建者的捆绑交易不同，内部交易不是全有或全无。轮到某笔内部交易时如果它无效（nonce 错误、资金不足），就会被跳过。捆绑签名者按 calldata 费率加上基础成本为其字节付费；有效的内部交易不会给捆绑签名者带来额外成本，并各自支付自己的 gas。\n\n**收据：**捆绑交易的收据包含一个 `statusArray`，每笔内部交易对应一项，无效的交易状态为 `0x3`。无效的委托交易没有自己的收据。\n\n## 示例代码\n\n规范中的负载布局（RLP）：\n\n```text\n0x05 || rlp([bundleSigner, blockNumber, chainId, nonce, gasPrice,\n             gasLimit, to, value, data, yParity, r, s])\n\n0x06 || rlp([bundleSigner, blockNumber, chainId, nonce, gasPrice,\n             transactionList, yParity, r, s])\n\nbundle gas = BUNDLE_BASE_GAS_COST\n           + CALL_DATA_TOKEN_COST * invalid_inner_tx_bytes\n```\n\n一个只接受由自己的排序器排序的调用的合约（仅作演示；操作码编号仍待定，因此用 `bundleSigner()` 代替）：\n\n```solidity\naddress public immutable sequencer;\n\nmodifier onlySequenced() {\n    require(bundleSigner() == sequencer, \"not sequenced\");\n    _;\n}\n```\n\n## 需要注意\n\n- 状态为 **Stagnant**：近期没有进展，也没有被安排进任何升级。`BUNDLE_BASE_GAS_COST` 等常量和操作码编号仍待定。\n- 该草案使用旧式的单一 `gasPrice`，而不是 [EIP-1559](/eip-1559/) 的费用字段。\n- 委托排序并不能消除审查风险，只是把风险转移到了排序器。规范建议以公开且最小化信任的方式运行排序逻辑（例如在 TEE 中）。\n- 以 `BUNDLE_SIGNER` 作为门槛的合约，应为用户提供不依赖排序器在线或诚实的资金提取方式。\n"}}}
