{"eip":2803,"title":"Rich Transactions","description":"Support 'rich transactions' by allowing transactions from externally owned accounts to execute bytecode directly.","authors":["Micah Zoltu (@MicahZoltu)"],"status":"Stagnant","type":"Standards Track","category":"Core","created":"2020-07-18","discussionsTo":"https://ethereum-magicians.org/t/rich-transactions-via-evm-bytecode-execution-from-externally-owned-accounts/4025","repo":"EIPs","label":"EIP-2803","officialUrl":"https://eips.ethereum.org/EIPS/eip-2803","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-2803.md","url":"https://eips.huatuo.xyz/eip-2803/","tldr":{"en":"Proposed a special precompile address that, when an EOA sends a transaction to it, runs the transaction data as EVM bytecode in the EOA's own context, enabling batched calls from plain accounts.","ja":"EOA がトランザクションを送ると、そのデータを EOA 自身のコンテキストで EVM バイトコードとして実行する特別なプリコンパイルアドレスを提案した。通常のアカウントでも呼び出しをバッチ化できるようになる。","ko":"EOA가 트랜잭션을 보내면 그 데이터를 EOA 자신의 컨텍스트에서 EVM 바이트코드로 실행하는 특별한 프리컴파일 주소를 제안했다. 일반 계정에서도 호출을 일괄 처리할 수 있게 한다.","zh":"提议设置一个特殊的预编译地址：当 EOA 向它发送交易时，交易数据会在该 EOA 自己的上下文中作为 EVM 字节码执行，使普通账户也能批量调用。"},"tags":["eoa","batching","account-abstraction","precompile","core"],"explainers":{"en":{"lang":"en","tldr":"Proposed a special precompile address that, when an EOA sends a transaction to it, runs the transaction data as EVM bytecode in the EOA's own context, enabling batched calls from plain accounts.","tags":["eoa","batching","account-abstraction","precompile","core"],"related":[7702,3074,2718,4337],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-2803/","markdown":"## What problem does it solve?\n\nMany dApp actions need several transactions from an externally owned account (EOA). The classic example is approving a token and then calling the contract that spends it. Each step costs a signature, a confirmation and gas, and if the second fails the first is left dangling.\n\nContract wallets can batch calls, but in 2020 they had poor wallet and browser support and required moving funds to a new address. EIP-2803 (\"rich transactions\") aims to give **existing EOAs** the ability to run arbitrary logic, including multiple calls, atomically in one transaction.\n\n## How it works\n\nA new reserved address `x` is set aside in the precompile range. When an EOA sends a transaction to `x`:\n\n- The transaction `data` is executed **as EVM bytecode**, not as calldata to a contract.\n- It runs as if the EOA itself were the contract:\n  - `ADDRESS`, `CALLER` and `ORIGIN` all return the EOA.\n  - `BALANCE` is the EOA's balance; `CALL`s with value spend the EOA's ETH.\n  - Outgoing `CALL`s show the EOA as `msg.sender`, so tokens see the user, not a wrapper.\n  - `SLOAD`/`SSTORE` read and write **the EOA's own storage**, which persists between transactions.\n- `SELFDESTRUCT` does nothing, and the transaction is invalid if it carries value.\n- There is no code at `x`; a contract calling `x` gets no special behavior.\n\nThe authors chose a precompile address rather than a new [EIP-2718](/eip-2718/) transaction type so that rich execution works with any transaction type.\n\n## Sample code\n\nIllustrative only: the address `x` was never assigned and the EIP was not deployed. The payload is raw bytecode that makes two calls in sequence.\n\n```text\ntx = {\n  from:  \u003cuser EOA\u003e,\n  to:    x,                 // reserved rich-transaction address (TBD in spec)\n  value: 0,                 // must be zero\n  data:  \u003cbytecode\u003e\n}\n\n\u003cbytecode\u003e (pseudo-assembly):\n  // 1) token.approve(router, amount)   -- msg.sender seen by token = user EOA\n  CALL(gas, token,  0, approveCalldata)\n  ISZERO -\u003e revert if failed\n  // 2) router.swap(...)                -- pulls the just-approved tokens\n  CALL(gas, router, 0, swapCalldata)\n  ISZERO -\u003e revert if failed\n  STOP\n```\n\n## Things to know\n\n- Status is **Stagnant**. It was never scheduled for a hard fork.\n- The goal (letting EOAs batch calls and run custom logic) was later pursued by [EIP-3074](/eip-3074/) (AUTH/AUTHCALL, now Withdrawn) and achieved by [EIP-7702](/eip-7702/), which lets an EOA point to delegate contract code. Smart accounts via [ERC-4337](/eip-4337/) are another route.\n- Contracts that assume an EOA cannot do several things atomically (e.g. `require(msg.sender == tx.origin)` as a protection) would have been weakened. The authors argued this assumption was already unreliable.\n- Giving EOAs persistent storage was a notable side effect; it is one of the reasons later designs took a different path.\n"},"ja":{"lang":"ja","tldr":"EOA がトランザクションを送ると、そのデータを EOA 自身のコンテキストで EVM バイトコードとして実行する特別なプリコンパイルアドレスを提案した。通常のアカウントでも呼び出しをバッチ化できるようになる。","tags":["eoa","batching","account-abstraction","precompile","core"],"related":[7702,3074,2718,4337],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-2803/","markdown":"## 何を解決するのか\n\ndApp の多くの操作では、外部所有アカウント（EOA）から複数のトランザクションが必要です。典型例は、トークンを approve してから、それを使うコントラクトを呼び出すケースです。ステップごとに署名、確認、ガス代がかかり、2 つ目が失敗すると 1 つ目が宙に浮いてしまいます。\n\nコントラクトウォレットなら呼び出しをバッチ化できますが、2020 年当時はウォレットやブラウザのサポートが乏しく、新しいアドレスに資金を移す必要がありました。EIP-2803（「リッチトランザクション」）は、**既存の EOA** に、複数の呼び出しを含む任意のロジックを 1 つのトランザクションでアトミックに実行する能力を与えることを目指しています。\n\n## 仕組み\n\nプリコンパイルの範囲内に、新しい予約済みアドレス `x` が確保されます。EOA が `x` にトランザクションを送ると、次のようになります。\n\n- トランザクションの `data` は、コントラクトへの calldata ではなく、**EVM バイトコードとして**実行されます。\n- EOA 自身がコントラクトであるかのように実行されます。\n  - `ADDRESS`、`CALLER`、`ORIGIN` はすべて EOA を返します。\n  - `BALANCE` は EOA の残高で、値付きの `CALL` は EOA の ETH を使います。\n  - 外向きの `CALL` では `msg.sender` が EOA に見えるため、トークン側にはラッパーではなくユーザー本人が見えます。\n  - `SLOAD`/`SSTORE` は**EOA 自身のストレージ**を読み書きし、それはトランザクションをまたいで保持されます。\n- `SELFDESTRUCT` は何もせず、トランザクションが value を持つ場合は無効になります。\n- `x` にはコードがありません。`x` を呼び出すコントラクトに特別な挙動はありません。\n\n作者は、新しい [EIP-2718](/eip-2718/) のトランザクションタイプではなくプリコンパイルアドレスを選びました。これにより、リッチな実行がどのトランザクションタイプでも機能します。\n\n## サンプルコード\n\n説明用のものです。アドレス `x` は割り当てられたことがなく、この EIP はデプロイされていません。ペイロードは、2 つの呼び出しを順に行う生のバイトコードです。\n\n```text\ntx = {\n  from:  \u003cuser EOA\u003e,\n  to:    x,                 // reserved rich-transaction address (TBD in spec)\n  value: 0,                 // must be zero\n  data:  \u003cbytecode\u003e\n}\n\n\u003cbytecode\u003e (pseudo-assembly):\n  // 1) token.approve(router, amount)   -- msg.sender seen by token = user EOA\n  CALL(gas, token,  0, approveCalldata)\n  ISZERO -\u003e revert if failed\n  // 2) router.swap(...)                -- pulls the just-approved tokens\n  CALL(gas, router, 0, swapCalldata)\n  ISZERO -\u003e revert if failed\n  STOP\n```\n\n## 知っておくべきこと\n\n- ステータスは **Stagnant** です。ハードフォークの予定に入ったことはありません。\n- 目標（EOA が呼び出しをバッチ化し、独自のロジックを実行できるようにすること）は、のちに [EIP-3074](/eip-3074/)（AUTH/AUTHCALL、現在は Withdrawn）で追求され、EOA が委任先のコントラクトコードを指せるようにする [EIP-7702](/eip-7702/) で実現しました。[ERC-4337](/eip-4337/) のスマートアカウントも別の道です。\n- EOA は複数のことをアトミックに行えないという前提に立つコントラクト（たとえば保護策としての `require(msg.sender == tx.origin)`）は弱体化していたでしょう。作者は、この前提はすでに当てにならないと主張していました。\n- EOA に永続的なストレージを与えることは、注目すべき副作用でした。のちの設計が別の道を選んだ理由のひとつです。\n"},"ko":{"lang":"ko","tldr":"EOA가 트랜잭션을 보내면 그 데이터를 EOA 자신의 컨텍스트에서 EVM 바이트코드로 실행하는 특별한 프리컴파일 주소를 제안했다. 일반 계정에서도 호출을 일괄 처리할 수 있게 한다.","tags":["eoa","batching","account-abstraction","precompile","core"],"related":[7702,3074,2718,4337],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-2803/","markdown":"## 어떤 문제를 해결하나요?\n\n많은 dApp 동작은 외부 소유 계정(EOA)에서 여러 트랜잭션을 필요로 합니다. 대표적인 예는 토큰을 approve한 다음 그것을 쓰는 컨트랙트를 호출하는 경우입니다. 단계마다 서명, 확인, 가스비가 들고, 두 번째가 실패하면 첫 번째가 덩그러니 남습니다.\n\n컨트랙트 지갑은 호출을 일괄 처리할 수 있지만, 2020년에는 지갑과 브라우저 지원이 미흡했고 자금을 새 주소로 옮겨야 했습니다. EIP-2803(\"리치 트랜잭션\")은 **기존 EOA**가 여러 호출을 포함한 임의의 로직을 하나의 트랜잭션에서 원자적으로 실행할 수 있게 하는 것을 목표로 합니다.\n\n## 어떻게 동작하나요?\n\n프리컴파일 범위에 새로운 예약 주소 `x`를 따로 마련합니다. EOA가 `x`로 트랜잭션을 보내면:\n\n- 트랜잭션의 `data`는 컨트랙트에 보내는 calldata가 아니라 **EVM 바이트코드로** 실행됩니다.\n- EOA 자신이 컨트랙트인 것처럼 실행됩니다.\n  - `ADDRESS`, `CALLER`, `ORIGIN`은 모두 EOA를 반환합니다.\n  - `BALANCE`는 EOA의 잔액이며, 값이 있는 `CALL`은 EOA의 ETH를 사용합니다.\n  - 외부로 나가는 `CALL`에서는 EOA가 `msg.sender`로 보이므로, 토큰은 래퍼가 아니라 사용자를 봅니다.\n  - `SLOAD`/`SSTORE`는 **EOA 자신의 스토리지**를 읽고 쓰며, 이는 트랜잭션 사이에도 유지됩니다.\n- `SELFDESTRUCT`는 아무 일도 하지 않으며, 트랜잭션이 value를 담고 있으면 무효입니다.\n- `x`에는 코드가 없습니다. `x`를 호출하는 컨트랙트에는 특별한 동작이 없습니다.\n\n작성자들은 새로운 [EIP-2718](/eip-2718/) 트랜잭션 타입 대신 프리컴파일 주소를 택해, 리치 실행이 어떤 트랜잭션 타입에서든 동작하도록 했습니다.\n\n## 샘플 코드\n\n설명용입니다. 주소 `x`는 할당된 적이 없고 이 EIP는 배포되지 않았습니다. 페이로드는 두 번의 호출을 순서대로 수행하는 원시 바이트코드입니다.\n\n```text\ntx = {\n  from:  \u003cuser EOA\u003e,\n  to:    x,                 // reserved rich-transaction address (TBD in spec)\n  value: 0,                 // must be zero\n  data:  \u003cbytecode\u003e\n}\n\n\u003cbytecode\u003e (pseudo-assembly):\n  // 1) token.approve(router, amount)   -- msg.sender seen by token = user EOA\n  CALL(gas, token,  0, approveCalldata)\n  ISZERO -\u003e revert if failed\n  // 2) router.swap(...)                -- pulls the just-approved tokens\n  CALL(gas, router, 0, swapCalldata)\n  ISZERO -\u003e revert if failed\n  STOP\n```\n\n## 알아둘 점\n\n- 상태는 **Stagnant**입니다. 하드포크 일정에 오른 적이 없습니다.\n- 목표(EOA가 호출을 일괄 처리하고 커스텀 로직을 실행하게 하는 것)는 이후 [EIP-3074](/eip-3074/)(AUTH/AUTHCALL, 현재 Withdrawn)로 추진되었고, EOA가 위임된 컨트랙트 코드를 가리킬 수 있게 하는 [EIP-7702](/eip-7702/)로 달성되었습니다. [ERC-4337](/eip-4337/)을 통한 스마트 계정도 또 다른 길입니다.\n- EOA는 여러 일을 원자적으로 할 수 없다고 가정하는 컨트랙트(예: 보호 장치로서의 `require(msg.sender == tx.origin)`)는 약해졌을 것입니다. 작성자들은 이 가정이 이미 믿을 만하지 못하다고 주장했습니다.\n- EOA에 영구 스토리지를 주는 것은 눈에 띄는 부작용이었으며, 이후 설계들이 다른 길을 택한 이유 중 하나입니다.\n"},"zh":{"lang":"zh","tldr":"提议设置一个特殊的预编译地址：当 EOA 向它发送交易时，交易数据会在该 EOA 自己的上下文中作为 EVM 字节码执行，使普通账户也能批量调用。","tags":["eoa","batching","account-abstraction","precompile","core"],"related":[7702,3074,2718,4337],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-2803/","markdown":"## 它解决什么问题？\n\n许多 dApp 操作需要外部拥有账户（EOA）发送多笔交易。典型的例子是先授权代币，再调用花费它的合约。每一步都要签名、确认并支付 gas，而且如果第二步失败，第一步就被晾在那里。\n\n合约钱包可以批量调用，但在 2020 年，它们的钱包和浏览器支持很差，而且需要把资金转移到新地址。EIP-2803（\"富交易\"）旨在让**现有的 EOA** 能够在一笔交易中原子地运行任意逻辑，包括多次调用。\n\n## 它如何运作\n\n在预编译范围内预留一个新的保留地址 `x`。当 EOA 向 `x` 发送交易时：\n\n- 交易的 `data` 会**作为 EVM 字节码**执行，而不是作为发给某个合约的 calldata。\n- 它的运行方式就好像 EOA 自己就是合约：\n  - `ADDRESS`、`CALLER` 和 `ORIGIN` 都返回该 EOA。\n  - `BALANCE` 是 EOA 的余额；带 value 的 `CALL` 会花费 EOA 的 ETH。\n  - 对外的 `CALL` 会把 EOA 显示为 `msg.sender`，因此代币看到的是用户，而不是某个包装合约。\n  - `SLOAD`/`SSTORE` 读写**EOA 自己的存储**，并且在多笔交易之间持续存在。\n- `SELFDESTRUCT` 不做任何事，并且如果交易携带 value，则该交易无效。\n- `x` 处没有代码；调用 `x` 的合约不会得到任何特殊行为。\n\n作者选择使用预编译地址而不是新的 [EIP-2718](/eip-2718/) 交易类型，这样富执行可以适用于任何交易类型。\n\n## 示例代码\n\n仅为示意：地址 `x` 从未被分配，该 EIP 也没有被部署。载荷是依次发起两次调用的原始字节码。\n\n```text\ntx = {\n  from:  \u003cuser EOA\u003e,\n  to:    x,                 // reserved rich-transaction address (TBD in spec)\n  value: 0,                 // must be zero\n  data:  \u003cbytecode\u003e\n}\n\n\u003cbytecode\u003e (pseudo-assembly):\n  // 1) token.approve(router, amount)   -- msg.sender seen by token = user EOA\n  CALL(gas, token,  0, approveCalldata)\n  ISZERO -\u003e revert if failed\n  // 2) router.swap(...)                -- pulls the just-approved tokens\n  CALL(gas, router, 0, swapCalldata)\n  ISZERO -\u003e revert if failed\n  STOP\n```\n\n## 需要注意\n\n- 状态为 **Stagnant**。它从未被排入任何硬分叉计划。\n- 这一目标（让 EOA 批量调用并运行自定义逻辑）后来由 [EIP-3074](/eip-3074/)（AUTH/AUTHCALL，现已 Withdrawn）尝试，并由 [EIP-7702](/eip-7702/) 实现，后者允许 EOA 指向委托的合约代码。通过 [ERC-4337](/eip-4337/) 的智能账户则是另一条路径。\n- 那些假定 EOA 无法原子地做多件事的合约（例如把 `require(msg.sender == tx.origin)` 当作保护手段）将会被削弱。作者认为这个假设本来就已经不可靠。\n- 给 EOA 提供持久存储是一个值得注意的副作用；这也是后来的设计选择了不同道路的原因之一。\n"}}}
