{"eip":7808,"title":"Reserve Tx-Type Range for RIPs","description":"Reserve transaction type range for use by the RIP process","authors":["Carl Beekhuizen (@carlbeek)","Yoav Weiss (@yoavw)","Ansgar Dietrichs (@adietrichs)"],"status":"Stagnant","type":"Meta","created":"2024-11-04","requires":[2718],"discussionsTo":"https://ethereum-magicians.org/t/eip-7808-reserve-tx-type-range-for-rips/21587","repo":"EIPs","label":"EIP-7808","officialUrl":"https://eips.ethereum.org/EIPS/eip-7808","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7808.md","url":"https://eips.huatuo.xyz/eip-7808/","tldr":{"en":"Proposes reserving typed-transaction numbers 0x40 to 0x7f for Rollup Improvement Proposals, so L2 transaction types never collide with ones defined by EIPs for L1.","ja":"型付きトランザクション番号 0x40〜0x7f を Rollup Improvement Proposal 用に予約し、L2 のトランザクションタイプが L1 向けの EIP が定義するものと衝突しないようにする提案。","ko":"타입 지정 트랜잭션 번호 0x40~0x7f를 Rollup Improvement Proposal용으로 예약해, L2 트랜잭션 타입이 L1용 EIP가 정의한 타입과 충돌하지 않게 하자는 제안.","zh":"提议把类型化交易编号 0x40 到 0x7f 保留给 Rollup Improvement Proposal，这样 L2 的交易类型就不会与针对 L1 的 EIP 所定义的类型冲突。"},"tags":["transaction-types","rollups","rip","meta","stagnant"],"explainers":{"en":{"lang":"en","tldr":"Proposes reserving typed-transaction numbers 0x40 to 0x7f for Rollup Improvement Proposals, so L2 transaction types never collide with ones defined by EIPs for L1.","tags":["transaction-types","rollups","rip","meta","stagnant"],"related":[2718,4844,7702],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7808/","markdown":"## What problem does it solve?\n\n[EIP-2718](/eip-2718/) introduced typed transactions: the first byte of an encoded transaction names its type. Ethereum L1 has used this for type 1 (access lists), type 2 ([EIP-1559](/eip-1559/)), type 3 (blobs, [EIP-4844](/eip-4844/)) and type 4 ([EIP-7702](/eip-7702/)).\n\nRollups also want new transaction types, specified through the separate **RIP** (Rollup Improvement Proposal) process. If RIPs and EIPs pick numbers independently, the same byte could mean two different transactions on L1 and an L2, confusing wallets, libraries and tooling that work across chains.\n\n## How it works\n\nThe proposal is a single rule:\n\n- Transaction types **`0x40` through `0x7f`** (inclusive, 64 values) are reserved for the RIP process.\n\nThe RIP process keeps its own registry inside that range, and the EIP process no longer needs to track L2-only types. EIPs still have 64 types below `0x40` for their own use. No protocol behavior changes; this is a numbering agreement.\n\n## Sample code\n\nA client-side helper that classifies a raw transaction by its type byte:\n\n```ts\nfunction classifyTxType(raw: string): string {\n  const bytes = raw.startsWith(\"0x\") ? raw.slice(2) : raw;\n  const first = parseInt(bytes.slice(0, 2), 16);\n\n  if (first \u003e= 0xc0) return \"legacy (untyped RLP list)\";\n  if (first \u003c= 0x3f) return `EIP-defined type 0x${first.toString(16)}`;\n  if (first \u003e= 0x40 \u0026\u0026 first \u003c= 0x7f) return `RIP range type 0x${first.toString(16)}`;\n  return `unassigned type 0x${first.toString(16)}`;\n}\n```\n\n## Things to know\n\n- **Status: Stagnant.** The reservation has not been finalized as an EIP, so treat it as a proposed convention rather than a guarantee.\n- It is a Meta EIP: there is no consensus or client change on L1.\n- Under EIP-2718, legacy transactions are recognized because their first byte is `0xc0` or higher, so typed transactions use `0x00` to `0x7f`. Reserving `0x40`-`0x7f` hands half of that space to rollups.\n- Libraries that decode transactions across many chains benefit most: a type byte in the RIP range signals an L2-specific format, so the decoder should look up the rollup's own definition rather than assume an L1 meaning.\n- If you build a rollup-specific transaction type, coordinate through the RIP process to avoid clashing with other L2s.\n"},"ja":{"lang":"ja","tldr":"型付きトランザクション番号 0x40〜0x7f を Rollup Improvement Proposal 用に予約し、L2 のトランザクションタイプが L1 向けの EIP が定義するものと衝突しないようにする提案。","tags":["transaction-types","rollups","rip","meta","stagnant"],"related":[2718,4844,7702],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7808/","markdown":"## 何を解決するのか\n\n[EIP-2718](/eip-2718/) は型付きトランザクションを導入しました。エンコードされたトランザクションの最初のバイトがそのタイプを示します。Ethereum L1 はこれを、タイプ 1（アクセスリスト）、タイプ 2（[EIP-1559](/eip-1559/)）、タイプ 3（blob、[EIP-4844](/eip-4844/)）、タイプ 4（[EIP-7702](/eip-7702/)）に使ってきました。\n\nロールアップも新しいトランザクションタイプを求めており、別の **RIP**（Rollup Improvement Proposal）プロセスで仕様化されます。RIP と EIP が番号を別々に選ぶと、同じバイトが L1 と L2 で 2 つの異なるトランザクションを意味することになり、複数のチェーンにまたがって動くウォレット、ライブラリ、ツールが混乱します。\n\n## 仕組み\n\n提案は 1 つのルールだけです。\n\n- トランザクションタイプ **`0x40` から `0x7f`**（両端を含む、64 個の値）は RIP プロセス用に予約されます。\n\nRIP プロセスはその範囲内で独自のレジストリを管理し、EIP プロセスは L2 専用のタイプを追跡する必要がなくなります。EIP には引き続き `0x40` より下の 64 個のタイプが自由に使えます。プロトコルの動作は変わりません。これは番号付けの取り決めです。\n\n## サンプルコード\n\nタイプバイトによって生のトランザクションを分類するクライアント側のヘルパー:\n\n```ts\nfunction classifyTxType(raw: string): string {\n  const bytes = raw.startsWith(\"0x\") ? raw.slice(2) : raw;\n  const first = parseInt(bytes.slice(0, 2), 16);\n\n  if (first \u003e= 0xc0) return \"legacy (untyped RLP list)\";\n  if (first \u003c= 0x3f) return `EIP-defined type 0x${first.toString(16)}`;\n  if (first \u003e= 0x40 \u0026\u0026 first \u003c= 0x7f) return `RIP range type 0x${first.toString(16)}`;\n  return `unassigned type 0x${first.toString(16)}`;\n}\n```\n\n## 知っておくべきこと\n\n- **ステータス: Stagnant。** この予約は EIP として確定していないため、保証ではなく、提案された慣習として扱ってください。\n- これは Meta EIP であり、L1 にコンセンサスやクライアントの変更はありません。\n- EIP-2718 では、レガシートランザクションは最初のバイトが `0xc0` 以上であることで識別されるため、型付きトランザクションは `0x00` から `0x7f` を使います。`0x40`-`0x7f` を予約することで、その空間の半分がロールアップに割り当てられます。\n- 多くのチェーンにまたがってトランザクションをデコードするライブラリが最も恩恵を受けます。RIP の範囲のタイプバイトは L2 固有の形式を示すので、デコーダーは L1 での意味を仮定せず、そのロールアップ自身の定義を参照すべきです。\n- ロールアップ固有のトランザクションタイプを作る場合は、他の L2 と衝突しないよう RIP プロセスを通じて調整してください。\n"},"ko":{"lang":"ko","tldr":"타입 지정 트랜잭션 번호 0x40~0x7f를 Rollup Improvement Proposal용으로 예약해, L2 트랜잭션 타입이 L1용 EIP가 정의한 타입과 충돌하지 않게 하자는 제안.","tags":["transaction-types","rollups","rip","meta","stagnant"],"related":[2718,4844,7702],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7808/","markdown":"## 어떤 문제를 해결하나요?\n\n[EIP-2718](/eip-2718/)은 타입 지정 트랜잭션을 도입했습니다. 인코딩된 트랜잭션의 첫 바이트가 그 타입을 나타냅니다. 이더리움 L1은 이를 타입 1(액세스 리스트), 타입 2([EIP-1559](/eip-1559/)), 타입 3(blob, [EIP-4844](/eip-4844/)), 타입 4([EIP-7702](/eip-7702/))에 사용해 왔습니다.\n\n롤업도 새로운 트랜잭션 타입을 원하며, 이는 별도의 **RIP**(Rollup Improvement Proposal) 절차로 명세됩니다. RIP와 EIP가 번호를 각자 따로 고르면 같은 바이트가 L1과 L2에서 서로 다른 두 트랜잭션을 뜻하게 되어, 여러 체인에 걸쳐 동작하는 지갑, 라이브러리, 도구가 혼란을 겪습니다.\n\n## 어떻게 동작하나요?\n\n제안은 규칙 하나뿐입니다.\n\n- 트랜잭션 타입 **`0x40`부터 `0x7f`까지**(양 끝 포함, 64개 값)는 RIP 절차용으로 예약됩니다.\n\nRIP 절차는 그 범위 안에서 자체 레지스트리를 관리하고, EIP 절차는 L2 전용 타입을 더 이상 추적할 필요가 없습니다. EIP에는 `0x40` 아래의 64개 타입이 여전히 남아 있습니다. 프로토콜 동작은 바뀌지 않으며, 번호 부여에 관한 합의일 뿐입니다.\n\n## 샘플 코드\n\n타입 바이트로 원시 트랜잭션을 분류하는 클라이언트 측 헬퍼:\n\n```ts\nfunction classifyTxType(raw: string): string {\n  const bytes = raw.startsWith(\"0x\") ? raw.slice(2) : raw;\n  const first = parseInt(bytes.slice(0, 2), 16);\n\n  if (first \u003e= 0xc0) return \"legacy (untyped RLP list)\";\n  if (first \u003c= 0x3f) return `EIP-defined type 0x${first.toString(16)}`;\n  if (first \u003e= 0x40 \u0026\u0026 first \u003c= 0x7f) return `RIP range type 0x${first.toString(16)}`;\n  return `unassigned type 0x${first.toString(16)}`;\n}\n```\n\n## 알아둘 점\n\n- **상태: Stagnant.** 이 예약은 EIP로 확정되지 않았으므로, 보장이 아니라 제안된 관례로 받아들이세요.\n- Meta EIP이며, L1의 합의나 클라이언트 변경은 없습니다.\n- EIP-2718에서는 첫 바이트가 `0xc0` 이상이라는 점으로 레거시 트랜잭션을 알아보므로, 타입 지정 트랜잭션은 `0x00`부터 `0x7f`를 사용합니다. `0x40`-`0x7f`를 예약하면 그 공간의 절반이 롤업에 넘어갑니다.\n- 여러 체인의 트랜잭션을 디코딩하는 라이브러리가 가장 큰 혜택을 봅니다. RIP 범위의 타입 바이트는 L2 전용 형식을 뜻하므로, 디코더는 L1의 의미를 가정하지 말고 해당 롤업의 자체 정의를 찾아봐야 합니다.\n- 롤업 전용 트랜잭션 타입을 만든다면, 다른 L2와 충돌하지 않도록 RIP 절차를 통해 조율하세요.\n"},"zh":{"lang":"zh","tldr":"提议把类型化交易编号 0x40 到 0x7f 保留给 Rollup Improvement Proposal，这样 L2 的交易类型就不会与针对 L1 的 EIP 所定义的类型冲突。","tags":["transaction-types","rollups","rip","meta","stagnant"],"related":[2718,4844,7702],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7808/","markdown":"## 它解决什么问题？\n\n[EIP-2718](/eip-2718/) 引入了类型化交易：编码后交易的第一个字节标明其类型。以太坊 L1 已用它定义了类型 1（访问列表）、类型 2（[EIP-1559](/eip-1559/)）、类型 3（blob，[EIP-4844](/eip-4844/)）和类型 4（[EIP-7702](/eip-7702/)）。\n\nRollup 同样需要新的交易类型，它们通过独立的 **RIP**（Rollup Improvement Proposal）流程来制定规范。如果 RIP 和 EIP 各自独立选择编号，同一个字节在 L1 和某个 L2 上就可能代表两种不同的交易，让跨链工作的钱包、库和工具感到困惑。\n\n## 它如何运作\n\n提案只有一条规则：\n\n- 交易类型 **`0x40` 到 `0x7f`**（含两端，共 64 个值）保留给 RIP 流程。\n\nRIP 流程在这个范围内维护自己的注册表，EIP 流程不再需要跟踪仅限 L2 的类型。EIP 仍然可以使用 `0x40` 以下的 64 个类型。协议行为不会改变；这只是一项编号约定。\n\n## 示例代码\n\n一个客户端辅助函数，根据类型字节对原始交易分类：\n\n```ts\nfunction classifyTxType(raw: string): string {\n  const bytes = raw.startsWith(\"0x\") ? raw.slice(2) : raw;\n  const first = parseInt(bytes.slice(0, 2), 16);\n\n  if (first \u003e= 0xc0) return \"legacy (untyped RLP list)\";\n  if (first \u003c= 0x3f) return `EIP-defined type 0x${first.toString(16)}`;\n  if (first \u003e= 0x40 \u0026\u0026 first \u003c= 0x7f) return `RIP range type 0x${first.toString(16)}`;\n  return `unassigned type 0x${first.toString(16)}`;\n}\n```\n\n## 需要注意\n\n- **状态：Stagnant。** 这项保留尚未作为 EIP 最终确定，因此应将其视为一项被提议的约定，而不是保证。\n- 它是一个 Meta EIP：L1 上没有共识或客户端层面的改动。\n- 在 EIP-2718 下，传统交易靠第一个字节为 `0xc0` 或更大来识别，所以类型化交易使用 `0x00` 到 `0x7f`。保留 `0x40`-`0x7f` 相当于把这部分空间的一半交给了 rollup。\n- 跨多条链解码交易的库受益最大：RIP 范围内的类型字节表示 L2 专有格式，因此解码器应查找该 rollup 自己的定义，而不是默认按 L1 的含义处理。\n- 如果你要构建 rollup 专属的交易类型，请通过 RIP 流程协调，避免与其他 L2 冲突。\n"}}}
