{"eip":8175,"title":"Composable Transaction","description":"An extensible EIP-2718 transaction type with separated signatures, fee delegation via fee_auth, and opcodes for signature introspection","authors":["Dragan Rakita (@rakita)"],"status":"Draft","type":"Standards Track","category":"Core","created":"2026-02-26","requires":[2,1559,2718],"discussionsTo":"https://ethereum-magicians.org/t/eip-8175-composable-transaction/27850","repo":"EIPs","label":"EIP-8175","officialUrl":"https://eips.ethereum.org/EIPS/eip-8175","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8175.md","url":"https://eips.huatuo.xyz/eip-8175/","tldr":{"en":"Proposes one extensible transaction type whose actions are a list of typed capabilities (CALL, CREATE), with signatures kept separate and a programmable fee_auth sponsor, so new features stop needing brand-new transaction types.","ja":"アクションが型付きケイパビリティ（CALL、CREATE）のリストである、拡張可能な 1 つのトランザクションタイプの提案。署名は分離され、プログラム可能な fee_auth スポンサーを持ち、新機能のたびに新しいトランザクションタイプが必要になる状況をなくす。","ko":"동작이 타입이 있는 기능(CALL, CREATE)의 목록이고, 서명이 분리되어 있으며, 프로그래밍 가능한 fee_auth 스폰서를 가진 하나의 확장 가능한 트랜잭션 유형 제안. 새 기능마다 새로운 트랜잭션 유형이 필요한 상황을 없앤다.","zh":"提议一种可扩展的单一交易类型，其动作是一组带类型的能力（CALL、CREATE），签名单独存放，并有可编程的 fee_auth 赞助方，让新特性不再需要全新的交易类型。"},"tags":["transactions","sponsorship","batching","opcodes","core"],"explainers":{"en":{"lang":"en","tldr":"Proposes one extensible transaction type whose actions are a list of typed capabilities (CALL, CREATE), with signatures kept separate and a programmable fee_auth sponsor, so new features stop needing brand-new transaction types.","tags":["transactions","sponsorship","batching","opcodes","core"],"related":[2718,1559,8141,7702,4844],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-8175/","markdown":"## What problem does it solve?\n\nEvery major feature so far has come with its own transaction type: [EIP-1559](/eip-1559/) fees, [EIP-4844](/eip-4844/) blobs, [EIP-7702](/eip-7702/) authorizations. Most of their fields are the same, yet each one is a separate format, and combining features means yet another type.\n\nGas sponsorship (someone else paying your fee) is also a long-requested feature. [EIP-8141](/eip-8141/) tackles it with execution frames. EIP-8175 proposes a simpler route: a single composable transaction that carries a list of operations, independent signatures, and an optional sponsor contract.\n\n## How it works\n\nThe new [EIP-2718](/eip-2718/) type `0x05` has the payload:\n\n```\nrlp([chain_id, nonce, max_priority_fee_per_gas, max_fee_per_gas,\n     gas_limit, fee_auth, capabilities, signatures])\n```\n\n- **Capabilities** are what the transaction does, executed in order. `CALL` = `[0x01, to, value, data]`, `CREATE` = `[0x02, value, initcode]`. Several can be batched; execution stops at the first one that reverts. Future EIPs can add capability types instead of new transaction types.\n- **Signatures** are a separate list. Each has a role (`SENDER` or `PAYER`) and a scheme (secp256k1 or Ed25519). Signers sign a hash computed with the signature list blanked, mixed with a `\\x19ComposableTxSig` prefix, their scheme and their role, so they can sign independently and a sender signature cannot be reused as a payer signature.\n- **`fee_auth`** is either empty or an address. If set, the protocol first calls that account's code (caller = sender, no calldata). That code must use the new `RETURNETH` opcode to put at least `gas_limit × max_fee_per_gas` into a fee escrow. If it reverts or escrows too little, the transaction is invalid. Unused fee is refunded to `fee_auth`, and its state changes persist even if the main calls revert.\n- **Four new opcodes**, 2 gas each:\n  - `RETURNETH` (`0xf6`) sends ETH from the running account to its parent context (or the fee escrow)\n  - `SIG` (`0xf7`) copies a transaction signature into memory\n  - `SIGHASH` (`0xf8`) pushes the base hash\n  - `TX_GAS_LIMIT` (`0xf9`) pushes the transaction's gas limit\n- Intrinsic gas is 21,000, plus calldata costs, 32,000 per CREATE, and 3,000 per signature.\n\n## Sample code\n\nAn illustrative transaction that batches an ERC-20 approve and a swap, sponsored by a paymaster contract (field values are placeholders):\n\n```json\n{\n  \"type\": \"0x05\",\n  \"chain_id\": 1,\n  \"nonce\": 7,\n  \"max_priority_fee_per_gas\": \"1000000000\",\n  \"max_fee_per_gas\": \"30000000000\",\n  \"gas_limit\": 250000,\n  \"fee_auth\": \"0x\u003csponsor contract\u003e\",\n  \"capabilities\": [\n    [\"0x01\", \"0x\u003ctoken\u003e\",  \"0\", \"0x095ea7b3...\"],\n    [\"0x01\", \"0x\u003crouter\u003e\", \"0\", \"0x...\"]\n  ],\n  \"signatures\": [\n    [\"0x01\", \"0x00\", \"\u003cy_parity\u003e\", \"\u003cr\u003e\", \"\u003cs\u003e\"]\n  ]\n}\n```\n\nWhat the sponsor's `fee_auth` code has to do, in pseudocode:\n\n```python\nrequired = TX_GAS_LIMIT() * GASPRICE()   # GASPRICE exposes max_fee_per_gas here, per the spec\nbase     = SIGHASH()\nsig_type = SIG(0, mem)                   # inspect the sender's signature\nassert sponsor_policy_allows(base, mem)  # e.g. allow-list, rate limit\nRETURNETH(required)                      # fund the fee escrow\n```\n\n## Things to know\n\n- **Status: Draft.** Opcode numbers, the type byte and gas costs may change; other drafts also propose using type `0x05`.\n- Mempool nodes are asked to simulate `fee_auth` before accepting a transaction and to keep at most one pending composable transaction per sender, because a sponsor contract can burn gas and still make the transaction invalid.\n- `RETURNETH` can only send ETH to the immediate parent, not to arbitrary addresses, and it is invalid inside `STATICCALL`.\n- It overlaps in goals with [EIP-8141](/eip-8141/) frame transactions; the two are alternative designs.\n"},"ja":{"lang":"ja","tldr":"アクションが型付きケイパビリティ（CALL、CREATE）のリストである、拡張可能な 1 つのトランザクションタイプの提案。署名は分離され、プログラム可能な fee_auth スポンサーを持ち、新機能のたびに新しいトランザクションタイプが必要になる状況をなくす。","tags":["transactions","sponsorship","batching","opcodes","core"],"related":[2718,1559,8141,7702,4844],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-8175/","markdown":"## 何を解決するのか\n\nこれまでの主要機能にはそれぞれ専用のトランザクションタイプがありました。[EIP-1559](/eip-1559/) の手数料、[EIP-4844](/eip-4844/) の blob、[EIP-7702](/eip-7702/) の認可などです。フィールドの大半は同じなのに、それぞれが別々の形式であり、機能を組み合わせるにはさらに別のタイプが必要になります。\n\nガススポンサー（他の誰かがあなたの手数料を支払うこと）も、長らく求められてきた機能です。[EIP-8141](/eip-8141/) は実行フレームでこれに取り組んでいます。EIP-8175 はより単純な道を提案します。操作のリスト、独立した署名、任意のスポンサーコントラクトを運ぶ、1 つの合成可能なトランザクションです。\n\n## 仕組み\n\n新しい [EIP-2718](/eip-2718/) タイプ `0x05` のペイロードは次のとおりです。\n\n```\nrlp([chain_id, nonce, max_priority_fee_per_gas, max_fee_per_gas,\n     gas_limit, fee_auth, capabilities, signatures])\n```\n\n- **Capabilities** は、トランザクションが行うことで、順番に実行されます。`CALL` = `[0x01, to, value, data]`、`CREATE` = `[0x02, value, initcode]`。複数をバッチにでき、最初に revert したものの時点で実行が止まります。将来の EIP は、新しいトランザクションタイプの代わりにケイパビリティタイプを追加できます。\n- **Signatures** は別のリストです。それぞれにロール（`SENDER` または `PAYER`）とスキーム（secp256k1 または Ed25519）があります。署名者は、署名リストを空にして計算したハッシュに、`\\x19ComposableTxSig` プレフィックス、自身のスキーム、自身のロールを混ぜたものに署名します。そのため、独立して署名でき、送信者の署名を支払者の署名として再利用することはできません。\n- **`fee_auth`** は空か、アドレスのどちらかです。設定されている場合、プロトコルはまずそのアカウントのコードを呼び出します（caller = 送信者、calldata なし）。そのコードは新しい `RETURNETH` opcode を使って、少なくとも `gas_limit × max_fee_per_gas` を手数料エスクローに入れなければなりません。revert した場合や、エスクローに入れた額が足りない場合、そのトランザクションは無効です。使われなかった手数料は `fee_auth` に返金され、メインの呼び出しが revert してもその状態変更は残ります。\n- **4 つの新しい opcode**（それぞれ 2 ガス）:\n  - `RETURNETH`（`0xf6`）は、実行中のアカウントから親のコンテキスト（または手数料エスクロー）に ETH を送ります\n  - `SIG`（`0xf7`）は、トランザクションの署名をメモリにコピーします\n  - `SIGHASH`（`0xf8`）は、ベースハッシュをプッシュします\n  - `TX_GAS_LIMIT`（`0xf9`）は、トランザクションのガスリミットをプッシュします\n- 固有ガスは 21,000 に、calldata のコスト、CREATE ごとに 32,000、署名ごとに 3,000 を加えたものです。\n\n## サンプルコード\n\nERC-20 の approve とスワップをバッチにし、paymaster コントラクトがスポンサーするトランザクションの例です（フィールドの値はプレースホルダーです）。\n\n```json\n{\n  \"type\": \"0x05\",\n  \"chain_id\": 1,\n  \"nonce\": 7,\n  \"max_priority_fee_per_gas\": \"1000000000\",\n  \"max_fee_per_gas\": \"30000000000\",\n  \"gas_limit\": 250000,\n  \"fee_auth\": \"0x\u003csponsor contract\u003e\",\n  \"capabilities\": [\n    [\"0x01\", \"0x\u003ctoken\u003e\",  \"0\", \"0x095ea7b3...\"],\n    [\"0x01\", \"0x\u003crouter\u003e\", \"0\", \"0x...\"]\n  ],\n  \"signatures\": [\n    [\"0x01\", \"0x00\", \"\u003cy_parity\u003e\", \"\u003cr\u003e\", \"\u003cs\u003e\"]\n  ]\n}\n```\n\nスポンサーの `fee_auth` コードが行うべきことを、疑似コードで示します。\n\n```python\nrequired = TX_GAS_LIMIT() * GASPRICE()   # GASPRICE exposes max_fee_per_gas here, per the spec\nbase     = SIGHASH()\nsig_type = SIG(0, mem)                   # inspect the sender's signature\nassert sponsor_policy_allows(base, mem)  # e.g. allow-list, rate limit\nRETURNETH(required)                      # fund the fee escrow\n```\n\n## 知っておくべきこと\n\n- **ステータス: Draft。** opcode 番号、タイプのバイト、ガスコストは変わる可能性があります。ほかのドラフトもタイプ `0x05` の使用を提案しています。\n- スポンサーコントラクトはガスを消費しながらトランザクションを無効にできるため、メンプールのノードには、トランザクションを受け入れる前に `fee_auth` をシミュレートすること、そして送信者ごとに保留中の合成可能トランザクションを最大 1 つにすることが求められています。\n- `RETURNETH` が ETH を送れるのは直近の親だけで、任意のアドレスには送れません。また `STATICCALL` の内部では無効です。\n- 目的が [EIP-8141](/eip-8141/) のフレームトランザクションと重なっており、両者は代替となる設計です。\n"},"ko":{"lang":"ko","tldr":"동작이 타입이 있는 기능(CALL, CREATE)의 목록이고, 서명이 분리되어 있으며, 프로그래밍 가능한 fee_auth 스폰서를 가진 하나의 확장 가능한 트랜잭션 유형 제안. 새 기능마다 새로운 트랜잭션 유형이 필요한 상황을 없앤다.","tags":["transactions","sponsorship","batching","opcodes","core"],"related":[2718,1559,8141,7702,4844],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-8175/","markdown":"## 어떤 문제를 해결하나요?\n\n지금까지 주요 기능마다 자체 트랜잭션 유형이 딸려 왔습니다. [EIP-1559](/eip-1559/)의 수수료, [EIP-4844](/eip-4844/)의 blob, [EIP-7702](/eip-7702/)의 인가 등입니다. 필드 대부분이 같은데도 각각이 별도 형식이며, 기능을 조합하려면 또 다른 유형이 필요합니다.\n\n가스 후원(다른 누군가가 내 수수료를 대신 내는 것)도 오래 요청되어 온 기능입니다. [EIP-8141](/eip-8141/)은 실행 프레임으로 이를 해결하려 합니다. EIP-8175는 더 단순한 길을 제안합니다. 작업 목록, 독립적인 서명, 선택적 스폰서 컨트랙트를 담은 하나의 조합 가능한 트랜잭션입니다.\n\n## 어떻게 동작하나요?\n\n새 [EIP-2718](/eip-2718/) 유형 `0x05`의 페이로드는 다음과 같습니다.\n\n```\nrlp([chain_id, nonce, max_priority_fee_per_gas, max_fee_per_gas,\n     gas_limit, fee_auth, capabilities, signatures])\n```\n\n- **Capabilities**는 트랜잭션이 하는 일이며 순서대로 실행됩니다. `CALL` = `[0x01, to, value, data]`, `CREATE` = `[0x02, value, initcode]`. 여러 개를 배치로 묶을 수 있고, 처음으로 revert되는 것에서 실행이 멈춥니다. 앞으로의 EIP는 새 트랜잭션 유형 대신 기능 유형을 추가할 수 있습니다.\n- **Signatures**는 별도 목록입니다. 각각 역할(`SENDER` 또는 `PAYER`)과 방식(secp256k1 또는 Ed25519)이 있습니다. 서명자는 서명 목록을 비운 채 계산한 해시에 `\\x19ComposableTxSig` 접두사, 자신의 방식, 자신의 역할을 섞은 값에 서명하므로, 독립적으로 서명할 수 있고 발신자의 서명을 지불자의 서명으로 재사용할 수 없습니다.\n- **`fee_auth`**는 비어 있거나 주소입니다. 설정되어 있으면 프로토콜이 먼저 그 계정의 코드를 호출합니다(호출자 = 발신자, calldata 없음). 이 코드는 새 `RETURNETH` opcode를 사용해 최소 `gas_limit × max_fee_per_gas`를 수수료 에스크로에 넣어야 합니다. revert되거나 에스크로 금액이 너무 적으면 트랜잭션은 무효입니다. 사용하지 않은 수수료는 `fee_auth`로 환불되며, 주 호출이 revert되더라도 그 상태 변경은 유지됩니다.\n- **새 opcode 네 개**, 각 2 가스:\n  - `RETURNETH`(`0xf6`)는 실행 중인 계정에서 부모 컨텍스트(또는 수수료 에스크로)로 ETH를 보냅니다\n  - `SIG`(`0xf7`)는 트랜잭션 서명을 메모리로 복사합니다\n  - `SIGHASH`(`0xf8`)는 기본 해시를 푸시합니다\n  - `TX_GAS_LIMIT`(`0xf9`)는 트랜잭션의 가스 한도를 푸시합니다\n- 기본 가스는 21,000에 calldata 비용, CREATE당 32,000, 서명당 3,000을 더한 값입니다.\n\n## 샘플 코드\n\nERC-20 approve와 스왑을 묶어 paymaster 컨트랙트가 후원하는 예시 트랜잭션입니다(필드 값은 자리 표시자입니다).\n\n```json\n{\n  \"type\": \"0x05\",\n  \"chain_id\": 1,\n  \"nonce\": 7,\n  \"max_priority_fee_per_gas\": \"1000000000\",\n  \"max_fee_per_gas\": \"30000000000\",\n  \"gas_limit\": 250000,\n  \"fee_auth\": \"0x\u003csponsor contract\u003e\",\n  \"capabilities\": [\n    [\"0x01\", \"0x\u003ctoken\u003e\",  \"0\", \"0x095ea7b3...\"],\n    [\"0x01\", \"0x\u003crouter\u003e\", \"0\", \"0x...\"]\n  ],\n  \"signatures\": [\n    [\"0x01\", \"0x00\", \"\u003cy_parity\u003e\", \"\u003cr\u003e\", \"\u003cs\u003e\"]\n  ]\n}\n```\n\n스폰서의 `fee_auth` 코드가 해야 할 일을 의사 코드로 나타냈습니다.\n\n```python\nrequired = TX_GAS_LIMIT() * GASPRICE()   # GASPRICE exposes max_fee_per_gas here, per the spec\nbase     = SIGHASH()\nsig_type = SIG(0, mem)                   # inspect the sender's signature\nassert sponsor_policy_allows(base, mem)  # e.g. allow-list, rate limit\nRETURNETH(required)                      # fund the fee escrow\n```\n\n## 알아둘 점\n\n- **상태: Draft.** opcode 번호, 유형 바이트, 가스 비용은 바뀔 수 있으며, 다른 초안들도 유형 `0x05`의 사용을 제안합니다.\n- 스폰서 컨트랙트가 가스를 소모하면서도 트랜잭션을 무효로 만들 수 있으므로, 멤풀 노드는 트랜잭션을 받아들이기 전에 `fee_auth`를 시뮬레이션하고 발신자당 대기 중인 조합형 트랜잭션을 최대 하나만 유지하도록 요구받습니다.\n- `RETURNETH`는 ETH를 바로 위 부모에게만 보낼 수 있으며 임의의 주소로는 보낼 수 없고, `STATICCALL` 안에서는 무효입니다.\n- 목표가 [EIP-8141](/eip-8141/)의 프레임 트랜잭션과 겹치며, 둘은 대안적인 설계입니다.\n"},"zh":{"lang":"zh","tldr":"提议一种可扩展的单一交易类型，其动作是一组带类型的能力（CALL、CREATE），签名单独存放，并有可编程的 fee_auth 赞助方，让新特性不再需要全新的交易类型。","tags":["transactions","sponsorship","batching","opcodes","core"],"related":[2718,1559,8141,7702,4844],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-8175/","markdown":"## 它解决什么问题？\n\n迄今为止每个重要特性都自带一种交易类型：[EIP-1559](/eip-1559/) 的费用、[EIP-4844](/eip-4844/) 的 blob、[EIP-7702](/eip-7702/) 的授权。它们的大部分字段相同，却各是一种独立格式，要组合多个特性就又需要一种新类型。\n\nGas 代付（由别人替你支付手续费）也是一个呼声很久的特性。[EIP-8141](/eip-8141/) 用执行帧来解决它。EIP-8175 提出一条更简单的路：一个可组合的交易，携带一组操作、相互独立的签名和一个可选的赞助合约。\n\n## 它如何运作\n\n新的 [EIP-2718](/eip-2718/) 类型 `0x05` 的载荷为：\n\n```\nrlp([chain_id, nonce, max_priority_fee_per_gas, max_fee_per_gas,\n     gas_limit, fee_auth, capabilities, signatures])\n```\n\n- **Capabilities** 是交易要做的事，按顺序执行。`CALL` = `[0x01, to, value, data]`，`CREATE` = `[0x02, value, initcode]`。可以批量执行多个；遇到第一个 revert 的就停止。未来的 EIP 可以新增能力类型，而不必新增交易类型。\n- **Signatures** 是一个单独的列表。每个签名都有角色（`SENDER` 或 `PAYER`）和方案（secp256k1 或 Ed25519）。签名者签署的是一个哈希，该哈希在清空签名列表的情况下计算，并混入 `\\x19ComposableTxSig` 前缀、其方案及其角色，因此各方可以独立签名，发送方的签名也不能被当作支付方的签名重用。\n- **`fee_auth`** 要么为空，要么是一个地址。如果设置了，协议会先调用该账户的代码（调用者 = 发送方，无 calldata）。该代码必须使用新的 `RETURNETH` 操作码，把至少 `gas_limit × max_fee_per_gas` 放入手续费托管。如果它 revert 或托管的金额太少，交易无效。未使用的手续费退还给 `fee_auth`，即使主调用 revert，它的状态变更也会保留。\n- **四个新操作码**，各 2 gas：\n  - `RETURNETH`（`0xf6`）把 ETH 从当前运行的账户发送给其父上下文（或手续费托管）\n  - `SIG`（`0xf7`）把一个交易签名复制到内存\n  - `SIGHASH`（`0xf8`）压入基础哈希\n  - `TX_GAS_LIMIT`（`0xf9`）压入交易的 gas 上限\n- 固有 gas 为 21,000，加上 calldata 成本、每个 CREATE 32,000，以及每个签名 3,000。\n\n## 示例代码\n\n一笔示意交易，批量执行 ERC-20 的 approve 和一次兑换，由一个 paymaster 合约代付（字段值为占位符）：\n\n```json\n{\n  \"type\": \"0x05\",\n  \"chain_id\": 1,\n  \"nonce\": 7,\n  \"max_priority_fee_per_gas\": \"1000000000\",\n  \"max_fee_per_gas\": \"30000000000\",\n  \"gas_limit\": 250000,\n  \"fee_auth\": \"0x\u003csponsor contract\u003e\",\n  \"capabilities\": [\n    [\"0x01\", \"0x\u003ctoken\u003e\",  \"0\", \"0x095ea7b3...\"],\n    [\"0x01\", \"0x\u003crouter\u003e\", \"0\", \"0x...\"]\n  ],\n  \"signatures\": [\n    [\"0x01\", \"0x00\", \"\u003cy_parity\u003e\", \"\u003cr\u003e\", \"\u003cs\u003e\"]\n  ]\n}\n```\n\n赞助方的 `fee_auth` 代码需要做的事，用伪代码表示：\n\n```python\nrequired = TX_GAS_LIMIT() * GASPRICE()   # GASPRICE exposes max_fee_per_gas here, per the spec\nbase     = SIGHASH()\nsig_type = SIG(0, mem)                   # inspect the sender's signature\nassert sponsor_policy_allows(base, mem)  # e.g. allow-list, rate limit\nRETURNETH(required)                      # fund the fee escrow\n```\n\n## 需要注意\n\n- **状态：Draft。** 操作码编号、类型字节和 gas 成本可能变化；其他草案也提议使用类型 `0x05`。\n- 由于赞助合约可能消耗 gas 却仍使交易无效，内存池节点被要求在接受交易之前模拟 `fee_auth`，并且每个发送方最多只保留一笔待处理的可组合交易。\n- `RETURNETH` 只能把 ETH 发送给直接的父级，不能发给任意地址，并且在 `STATICCALL` 中无效。\n- 它与 [EIP-8141](/eip-8141/) 的帧交易目标有重叠；两者是互为替代的设计。\n"}}}
