{"eip":2733,"title":"Transaction Package","description":"Creates a new transaction type which executes a package of one or more transactions, while passing status information to subsequent transactions.","authors":["Matt Garnett (@lightclient)"],"status":"Withdrawn","type":"Standards Track","category":"Core","created":"2020-06-16","requires":[2718],"discussionsTo":"https://ethereum-magicians.org/t/eip-transaction-package/4365","repo":"EIPs","label":"EIP-2733","officialUrl":"https://eips.ethereum.org/EIPS/eip-2733","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-2733.md","url":"https://eips.huatuo.xyz/eip-2733/","tldr":{"en":"A withdrawn proposal for a new transaction type that bundles several signed transactions into one package, executed in order, so a relayer could sponsor gas and each step could see the previous step's result.","ja":"複数の署名済みトランザクションを 1 つのパッケージにまとめて順番に実行する新しいトランザクションタイプの、撤回された提案。リレイヤーがガスをスポンサーでき、各ステップが前のステップの結果を参照できる。","ko":"서명된 여러 트랜잭션을 하나의 패키지로 묶어 순서대로 실행하는 새 트랜잭션 타입에 대한 철회된 제안으로, 릴레이어가 가스를 대납할 수 있고 각 단계가 이전 단계의 결과를 볼 수 있다.","zh":"一项已撤回的提案：新增一种交易类型，把多个已签名的交易打包成一个包并按顺序执行，让中继者可以代付 gas，且每一步都能看到上一步的结果。"},"tags":["transactions","core","meta-transactions","batching","withdrawn"],"explainers":{"en":{"lang":"en","tldr":"A withdrawn proposal for a new transaction type that bundles several signed transactions into one package, executed in order, so a relayer could sponsor gas and each step could see the previous step's result.","tags":["transactions","core","meta-transactions","batching","withdrawn"],"related":[2718,3074,7702,4337],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-2733/","markdown":"## What problem does it solve?\n\nNew users often cannot transact on Ethereum because they have no ETH for gas. The usual workaround is meta-transactions: a user signs a message, a relayer submits it to a relay contract, and the contract verifies the signature and forwards the call. This is brittle. Relay contracts must recover signatures themselves, track their own nonces, and pass only part of the gas to the inner call so they can still finish (for example to collect a fee) if it reverts.\n\nEIP-2733 proposed solving this at the protocol level with a **transaction package**: a sponsor pays for gas for a sequence of transactions signed by other users, executed atomically in order.\n\n## How it works\n\nThe proposal defined a new [EIP-2718](/eip-2718/) typed transaction (type `2` in the draft):\n\n- The outer **TransactionPackage** is signed by the sponsor and carries `chain_id`, `nonce`, `gas_price` and a list of children.\n- Each **ChildPackage** is signed by its own sender and contains that sender's `nonce`, a `max_gas_price`, and a list of **ChildTransactions** (`to`, `value`, `data`, `gas_limit`, plus reserved `flags` and `extra` fields).\n- A child `type` of `0x00` signs over everything including the gas limit; `0x01` leaves the gas limit out of the signature, delegating it to the sponsor.\n- Transactions execute one after another. Before each one runs, the result of the previous one (`success`, `gas_used`, cumulative gas, return data) is made available through `RETURNDATACOPY` in its first call frame, enabling conditional flows.\n- Each child produces its own receipt; the package receipt is the list of them.\n- The draft intrinsic cost was `17000 + 8000 × children + data cost`.\n\n## Sample code\n\nIllustrative structure of a package, as described in the draft:\n\n```text\nTransactionPackage {            // signed by the sponsor (pays gas)\n  chain_id, nonce, gas_price,\n  children: [\n    ChildPackage {              // signed by user A\n      type: 0x00, nonce, max_gas_price,\n      transactions: [\n        { flags: 0, to: TokenA, value: 0, data: approve(...),  extra: 0x, gas_limit },\n        { flags: 0, to: DEX,    value: 0, data: swap(...),     extra: 0x, gas_limit }\n      ]\n    }\n  ],\n  v, r, s\n}\n\nsig_hash = keccak256(rlp([2, chain_id, children, nonce, gas_price]))\n```\n\n## Things to know\n\n- Status is **Withdrawn**. The author's stated reason was to pursue [EIP-3074](/eip-3074/) (`AUTH`/`AUTHCALL`) instead.\n- EIP-3074 was itself later withdrawn. Sponsored and batched transactions on mainnet today come from [EIP-7702](/eip-7702/) (EOAs delegating to contract code) and [ERC-4337](/eip-4337/) (account abstraction via an alternative mempool).\n- The draft noted that contracts checking `ORIGIN == CALLER` with empty return data would behave differently inside a package, and that mempools would need careful handling to keep validation cheap.\n- Type `2` was later assigned to EIP-1559 fee-market transactions, so this draft's type number has no meaning today.\n"},"ja":{"lang":"ja","tldr":"複数の署名済みトランザクションを 1 つのパッケージにまとめて順番に実行する新しいトランザクションタイプの、撤回された提案。リレイヤーがガスをスポンサーでき、各ステップが前のステップの結果を参照できる。","tags":["transactions","core","meta-transactions","batching","withdrawn"],"related":[2718,3074,7702,4337],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-2733/","markdown":"## 何を解決するのか\n\n新規ユーザーは、ガス用の ETH を持っていないために Ethereum でトランザクションを送れないことがよくあります。よくある回避策はメタトランザクションです。ユーザーがメッセージに署名し、リレイヤーがそれをリレーコントラクトに送信し、コントラクトが署名を検証して呼び出しを転送します。この方法は壊れやすいものです。リレーコントラクトは署名の復元、独自の nonce の管理を自前で行い、内側の呼び出しが revert してもなお処理を完了できる（たとえば手数料を回収できる）ように、ガスの一部だけを内側の呼び出しに渡す必要があります。\n\nEIP-2733 は、これをプロトコルレベルで解決することを提案しました。**トランザクションパッケージ**です。スポンサーが、他のユーザーが署名した一連のトランザクションのガスを支払い、順番にアトミックに実行します。\n\n## 仕組み\n\nこの提案は、新しい [EIP-2718](/eip-2718/) の型付きトランザクションを定義しました（ドラフトではタイプ `2`）。\n\n- 外側の **TransactionPackage** はスポンサーが署名し、`chain_id`、`nonce`、`gas_price`、子のリストを持ちます。\n- 各 **ChildPackage** は、それぞれの送信者が署名し、その送信者の `nonce`、`max_gas_price`、**ChildTransaction** のリスト（`to`、`value`、`data`、`gas_limit`、および予約済みの `flags` と `extra` フィールド）を含みます。\n- 子の `type` が `0x00` の場合は、ガスリミットを含むすべてに署名します。`0x01` の場合はガスリミットを署名から除外し、スポンサーに委ねます。\n- トランザクションは 1 つずつ順番に実行されます。各トランザクションの実行前に、直前のトランザクションの結果（`success`、`gas_used`、累積ガス、return data）が、最初の呼び出しフレームで `RETURNDATACOPY` を通じて利用可能になり、条件付きのフローを実現できます。\n- 各子は個別のレシートを生成し、パッケージのレシートはそれらのリストです。\n- ドラフトの固有コスト（intrinsic cost）は `17000 + 8000 × children + data cost` でした。\n\n## サンプルコード\n\nドラフトに記載されたパッケージの構造の説明用の例です。\n\n```text\nTransactionPackage {            // signed by the sponsor (pays gas)\n  chain_id, nonce, gas_price,\n  children: [\n    ChildPackage {              // signed by user A\n      type: 0x00, nonce, max_gas_price,\n      transactions: [\n        { flags: 0, to: TokenA, value: 0, data: approve(...),  extra: 0x, gas_limit },\n        { flags: 0, to: DEX,    value: 0, data: swap(...),     extra: 0x, gas_limit }\n      ]\n    }\n  ],\n  v, r, s\n}\n\nsig_hash = keccak256(rlp([2, chain_id, children, nonce, gas_price]))\n```\n\n## 知っておくべきこと\n\n- ステータスは **Withdrawn** です。作者が挙げた理由は、代わりに [EIP-3074](/eip-3074/)（`AUTH`/`AUTHCALL`）を進めるためでした。\n- EIP-3074 自体も後に撤回されました。現在メインネットで使われているスポンサー付きトランザクションやバッチ処理は、[EIP-7702](/eip-7702/)（EOA がコントラクトコードに委任する）と [ERC-4337](/eip-4337/)（代替の mempool によるアカウント抽象化）によるものです。\n- ドラフトは、`ORIGIN == CALLER` をチェックし、return data が空であることを前提とするコントラクトは、パッケージ内では挙動が異なること、また mempool では検証コストを低く保つために慎重な扱いが必要になることを指摘していました。\n- タイプ `2` はその後、EIP-1559 の手数料市場トランザクションに割り当てられたため、このドラフトのタイプ番号は現在では意味を持ちません。\n"},"ko":{"lang":"ko","tldr":"서명된 여러 트랜잭션을 하나의 패키지로 묶어 순서대로 실행하는 새 트랜잭션 타입에 대한 철회된 제안으로, 릴레이어가 가스를 대납할 수 있고 각 단계가 이전 단계의 결과를 볼 수 있다.","tags":["transactions","core","meta-transactions","batching","withdrawn"],"related":[2718,3074,7702,4337],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-2733/","markdown":"## 어떤 문제를 해결하나요?\n\n신규 사용자는 가스용 ETH가 없어서 이더리움에서 트랜잭션을 보내지 못하는 경우가 많습니다. 흔한 우회책은 메타 트랜잭션입니다. 사용자가 메시지에 서명하면 릴레이어가 이를 릴레이 컨트랙트에 제출하고, 컨트랙트가 서명을 검증한 뒤 호출을 전달합니다. 이 방식은 취약합니다. 릴레이 컨트랙트는 서명 복구와 자체 nonce 추적을 직접 해야 하고, 내부 호출이 revert되더라도 마무리(예: 수수료 징수)를 할 수 있도록 가스의 일부만 내부 호출에 넘겨야 합니다.\n\nEIP-2733은 이를 프로토콜 수준에서 해결하자고 제안했습니다. 바로 **트랜잭션 패키지**입니다. 후원자가 다른 사용자들이 서명한 일련의 트랜잭션에 대해 가스를 지불하고, 이를 순서대로 원자적으로 실행합니다.\n\n## 어떻게 동작하나요?\n\n이 제안은 새로운 [EIP-2718](/eip-2718/) 타입 트랜잭션을 정의했습니다(초안에서는 타입 `2`).\n\n- 바깥쪽 **TransactionPackage**는 후원자가 서명하며 `chain_id`, `nonce`, `gas_price`, 그리고 자식 목록을 담습니다.\n- 각 **ChildPackage**는 각자의 발신자가 서명하며, 해당 발신자의 `nonce`, `max_gas_price`, **ChildTransaction** 목록(`to`, `value`, `data`, `gas_limit`, 그리고 예약된 `flags`와 `extra` 필드)을 담습니다.\n- 자식의 `type`이 `0x00`이면 가스 한도를 포함한 모든 것에 서명하고, `0x01`이면 가스 한도를 서명에서 빼서 후원자에게 맡깁니다.\n- 트랜잭션은 하나씩 차례로 실행됩니다. 각 트랜잭션이 실행되기 전에 이전 트랜잭션의 결과(`success`, `gas_used`, 누적 가스, return data)가 첫 호출 프레임의 `RETURNDATACOPY`를 통해 제공되어 조건부 흐름이 가능합니다.\n- 각 자식은 자기 영수증을 만들고, 패키지 영수증은 그 목록입니다.\n- 초안의 고유 비용(intrinsic cost)은 `17000 + 8000 × children + data cost`였습니다.\n\n## 샘플 코드\n\n초안에 설명된 패키지의 구조를 보여 주는 설명용 예시입니다.\n\n```text\nTransactionPackage {            // signed by the sponsor (pays gas)\n  chain_id, nonce, gas_price,\n  children: [\n    ChildPackage {              // signed by user A\n      type: 0x00, nonce, max_gas_price,\n      transactions: [\n        { flags: 0, to: TokenA, value: 0, data: approve(...),  extra: 0x, gas_limit },\n        { flags: 0, to: DEX,    value: 0, data: swap(...),     extra: 0x, gas_limit }\n      ]\n    }\n  ],\n  v, r, s\n}\n\nsig_hash = keccak256(rlp([2, chain_id, children, nonce, gas_price]))\n```\n\n## 알아둘 점\n\n- 상태는 **Withdrawn**입니다. 작성자가 밝힌 이유는 대신 [EIP-3074](/eip-3074/)(`AUTH`/`AUTHCALL`)를 추진하기 위해서였습니다.\n- EIP-3074도 나중에 철회되었습니다. 오늘날 메인넷의 후원 및 일괄 트랜잭션은 [EIP-7702](/eip-7702/)(EOA가 컨트랙트 코드에 위임)와 [ERC-4337](/eip-4337/)(대체 mempool을 통한 계정 추상화)에서 나옵니다.\n- 초안은 `ORIGIN == CALLER`를 검사하면서 반환 데이터가 비어 있다고 가정하는 컨트랙트는 패키지 안에서 다르게 동작할 것이며, mempool도 검증 비용을 낮게 유지하려면 신중한 처리가 필요하다고 언급했습니다.\n- 타입 `2`는 이후 EIP-1559 수수료 시장 트랜잭션에 배정되었으므로, 이 초안의 타입 번호는 오늘날 의미가 없습니다.\n"},"zh":{"lang":"zh","tldr":"一项已撤回的提案：新增一种交易类型，把多个已签名的交易打包成一个包并按顺序执行，让中继者可以代付 gas，且每一步都能看到上一步的结果。","tags":["transactions","core","meta-transactions","batching","withdrawn"],"related":[2718,3074,7702,4337],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-2733/","markdown":"## 它解决什么问题？\n\n新用户常常因为没有用于支付 gas 的 ETH 而无法在以太坊上发交易。通常的变通办法是元交易：用户签署一条消息，中继者把它提交给中继合约，合约验证签名并转发调用。这种做法很脆弱。中继合约必须自己恢复签名、自己跟踪 nonce，并且只把一部分 gas 传给内部调用，以便在内部调用 revert 时仍能完成后续操作（例如收取费用）。\n\nEIP-2733 提议在协议层解决这个问题，方法是**交易包**：由赞助者为其他用户签署的一系列交易支付 gas，并按顺序原子地执行。\n\n## 它如何运作\n\n该提案定义了一种新的 [EIP-2718](/eip-2718/) 带类型交易（草案中为类型 `2`）：\n\n- 外层的 **TransactionPackage** 由赞助者签名，包含 `chain_id`、`nonce`、`gas_price` 和一组子包。\n- 每个 **ChildPackage** 由各自的发送者签名，包含该发送者的 `nonce`、一个 `max_gas_price` 以及一组 **ChildTransaction**（`to`、`value`、`data`、`gas_limit`，外加保留的 `flags` 和 `extra` 字段）。\n- 子包的 `type` 为 `0x00` 时，签名覆盖包括 gas 上限在内的所有内容；为 `0x01` 时，gas 上限不在签名范围内，交由赞助者决定。\n- 交易一个接一个地执行。每笔交易运行之前，上一笔交易的结果（`success`、`gas_used`、累计 gas、return data）会通过其第一个调用帧中的 `RETURNDATACOPY` 提供，从而实现条件流程。\n- 每个子交易产生各自的回执；包的回执就是这些回执的列表。\n- 草案中的固有成本为 `17000 + 8000 × children + data cost`。\n\n## 示例代码\n\n草案中描述的交易包的示意结构：\n\n```text\nTransactionPackage {            // signed by the sponsor (pays gas)\n  chain_id, nonce, gas_price,\n  children: [\n    ChildPackage {              // signed by user A\n      type: 0x00, nonce, max_gas_price,\n      transactions: [\n        { flags: 0, to: TokenA, value: 0, data: approve(...),  extra: 0x, gas_limit },\n        { flags: 0, to: DEX,    value: 0, data: swap(...),     extra: 0x, gas_limit }\n      ]\n    }\n  ],\n  v, r, s\n}\n\nsig_hash = keccak256(rlp([2, chain_id, children, nonce, gas_price]))\n```\n\n## 需要注意\n\n- 状态为 **Withdrawn**。作者给出的理由是转而推进 [EIP-3074](/eip-3074/)（`AUTH`/`AUTHCALL`）。\n- EIP-3074 本身后来也被撤回。如今主网上的代付和批量交易来自 [EIP-7702](/eip-7702/)（EOA 委托给合约代码）和 [ERC-4337](/eip-4337/)（通过另一套内存池实现账户抽象）。\n- 草案指出，检查 `ORIGIN == CALLER` 且返回数据为空的合约在交易包内的行为会有所不同，而内存池也需要谨慎处理，才能保持验证成本低廉。\n- 类型 `2` 后来被分配给了 EIP-1559 的费用市场交易，因此这份草案中的类型编号如今已没有意义。\n"}}}
