{"eip":7799,"title":"System logs","description":"Per-block logs without associated transactions","authors":["Etan Kissling (@etan-status)","Gajinder Singh (@g11tech)"],"status":"Draft","type":"Standards Track","category":"Core","created":"2024-10-29","requires":[4895,6466,7708,7916,8115],"discussionsTo":"https://ethereum-magicians.org/t/eip-7799-system-logs/21497","repo":"EIPs","label":"EIP-7799","officialUrl":"https://eips.ethereum.org/EIPS/eip-7799","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7799.md","url":"https://eips.huatuo.xyz/eip-7799/","tldr":{"en":"Emits protocol-level logs for ETH movements that have no transaction, such as fees, priority rewards and withdrawals, so eth_getLogs can show every change to an ETH balance.","ja":"手数料、priority 報酬、引き出しなど、トランザクションを伴わない ETH の移動に対してプロトコルレベルのログを emit する。eth_getLogs で ETH 残高のあらゆる変化を確認できるようにする。","ko":"수수료, priority 보상, 인출처럼 트랜잭션이 없는 ETH 이동에 대해 프로토콜 수준 로그를 emit한다. eth_getLogs로 ETH 잔액의 모든 변화를 볼 수 있다.","zh":"为没有交易的 ETH 流动（如手续费、优先费奖励和提款）发出协议级日志，使 eth_getLogs 能够显示 ETH 余额的每一次变化。"},"tags":["logs","json-rpc","withdrawals","wallets","core"],"explainers":{"en":{"lang":"en","tldr":"Emits protocol-level logs for ETH movements that have no transaction, such as fees, priority rewards and withdrawals, so eth_getLogs can show every change to an ETH balance.","tags":["logs","json-rpc","withdrawals","wallets","core"],"related":[7708,4895,6466,8115,4788],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-7799/","markdown":"## What problem does it solve?\n\n[EIP-7708](/eip-7708/) makes plain ETH transfers emit logs, so a wallet can track ETH the same way it tracks ERC-20 tokens: with `eth_getLogs`. But some ETH balance changes are not caused by any transfer inside a transaction:\n\n- the fee a sender pays for gas,\n- priority fees credited to the block's fee recipient,\n- validator withdrawals from the beacon chain ([EIP-4895](/eip-4895/)),\n- genesis allocations.\n\nToday a wallet has to fetch every block header and every withdrawal list to be sure it hasn't missed anything. EIP-7799 makes these events show up as logs too.\n\n## How it works\n\nAll new logs are emitted from `SYSTEM_ADDRESS` (`0xff…fe`, as used in [EIP-4788](/eip-4788/)), which no user contract can impersonate. Each looks like a `LOG2` with the account in `topics[1]` and the wei amount in `data`:\n\n| Event | When |\n| --- | --- |\n| `Fee(address,uint256)` | Per transaction, appended after its own logs: total fee paid (base + priority + blob) |\n| `PriorityRewards(address,uint256)` | When batched priority fees are credited ([EIP-8115](/eip-8115/)) |\n| `Withdrawal(address,uint256)` | For every beacon-chain withdrawal |\n| `Genesis(address,uint256)` | Genesis allocations, for new networks adopting this from the start |\n\n`Fee` lives in the transaction's receipt. The others go into a new per-block **system logs** list, an SSZ `ProgressiveList` of the [EIP-6466](/eip-6466/) `Log` type. Its root becomes a new header field, `system_logs_root`, also added to the Engine API and consensus `ExecutionPayload` and checked like `receiptsRoot`.\n\nOver JSON-RPC, system logs get `logIndex` values after the transaction logs, and `transactionHash` / `transactionIndex` set to `null`.\n\n## Sample code\n\nFetching all system-log withdrawals to an address (ethers v6):\n\n```ts\nimport { JsonRpcProvider, id, zeroPadValue, toBigInt } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst SYSTEM_ADDRESS = \"0xfffffffffffffffffffffffffffffffffffffffe\";\n\nconst logs = await provider.getLogs({\n  address: SYSTEM_ADDRESS,\n  topics: [id(\"Withdrawal(address,uint256)\"), zeroPadValue(myAddress, 32)],\n  fromBlock: start,\n  toBlock: \"latest\",\n});\n\nfor (const log of logs) {\n  // transactionHash is null for system logs\n  console.log(log.blockNumber, toBigInt(log.data), log.transactionHash);\n}\n```\n\n## Things to know\n\n- Status: **Draft**. The spec says the log definitions themselves may still change, for example to align with ERC-20 `Transfer` or deposit-log formats.\n- It depends on several other drafts (EIP-6466 SSZ receipts, EIP-7916 progressive lists, EIP-8115 batched priority fees) and only makes sense alongside EIP-7708.\n- Adding a header field breaks tools that assume a fixed header layout.\n- Withdrawal data would temporarily be duplicated in both the withdrawals list and system logs; retiring the list is mentioned as a possible future step.\n"},"ja":{"lang":"ja","tldr":"手数料、priority 報酬、引き出しなど、トランザクションを伴わない ETH の移動に対してプロトコルレベルのログを emit する。eth_getLogs で ETH 残高のあらゆる変化を確認できるようにする。","tags":["logs","json-rpc","withdrawals","wallets","core"],"related":[7708,4895,6466,8115,4788],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-7799/","markdown":"## 何を解決するのか\n\n[EIP-7708](/eip-7708/) は、単純な ETH 送金でもログを emit するようにします。これによりウォレットは、ERC-20 トークンと同じように `eth_getLogs` で ETH を追跡できます。しかし、ETH 残高の変化の中には、トランザクション内のどの送金によっても引き起こされないものがあります。\n\n- 送信者が gas に対して支払う手数料\n- ブロックの手数料受取人に付与される priority fee\n- ビーコンチェーンからのバリデーターの引き出し（[EIP-4895](/eip-4895/)）\n- genesis での割り当て\n\n現状では、ウォレットは取りこぼしがないと確信するために、すべてのブロックヘッダーとすべての引き出しリストを取得しなければなりません。EIP-7799 は、これらのイベントもログとして現れるようにします。\n\n## 仕組み\n\n新しいログはすべて `SYSTEM_ADDRESS`（[EIP-4788](/eip-4788/) で使われている `0xff…fe`）から emit されます。このアドレスはどのユーザーコントラクトも偽装できません。それぞれ `LOG2` のような形をしており、アカウントが `topics[1]`、wei 単位の金額が `data` に入ります。\n\n| イベント | タイミング |\n| --- | --- |\n| `Fee(address,uint256)` | トランザクションごと、そのトランザクション自身のログの後に追加：支払われた手数料の合計（base + priority + blob） |\n| `PriorityRewards(address,uint256)` | まとめられた priority fee が付与されるとき（[EIP-8115](/eip-8115/)） |\n| `Withdrawal(address,uint256)` | ビーコンチェーンからの引き出しごと |\n| `Genesis(address,uint256)` | genesis での割り当て。最初からこれを採用する新しいネットワーク向け |\n\n`Fee` はトランザクションのレシートに入ります。それ以外は、ブロックごとの新しい **system logs** リストに入ります。これは [EIP-6466](/eip-6466/) の `Log` 型の SSZ `ProgressiveList` です。そのルートは新しいヘッダーフィールド `system_logs_root` となり、Engine API とコンセンサスの `ExecutionPayload` にも追加され、`receiptsRoot` と同様に検証されます。\n\nJSON-RPC では、system logs の `logIndex` はトランザクションログの後に割り当てられ、`transactionHash` / `transactionIndex` は `null` に設定されます。\n\n## サンプルコード\n\nあるアドレス宛ての system log の引き出しをすべて取得する例（ethers v6）：\n\n```ts\nimport { JsonRpcProvider, id, zeroPadValue, toBigInt } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst SYSTEM_ADDRESS = \"0xfffffffffffffffffffffffffffffffffffffffe\";\n\nconst logs = await provider.getLogs({\n  address: SYSTEM_ADDRESS,\n  topics: [id(\"Withdrawal(address,uint256)\"), zeroPadValue(myAddress, 32)],\n  fromBlock: start,\n  toBlock: \"latest\",\n});\n\nfor (const log of logs) {\n  // transactionHash is null for system logs\n  console.log(log.blockNumber, toBigInt(log.data), log.transactionHash);\n}\n```\n\n## 知っておくべきこと\n\n- ステータス：**Draft**。仕様によれば、ログ定義そのものも、たとえば ERC-20 の `Transfer` やデポジットログの形式に合わせるために、まだ変わる可能性があります。\n- 他の複数のドラフト（EIP-6466 の SSZ レシート、EIP-7916 の progressive list、EIP-8115 のまとめられた priority fee）に依存しており、EIP-7708 と併せて初めて意味を持ちます。\n- ヘッダーフィールドを追加すると、固定のヘッダーレイアウトを前提とするツールが動かなくなります。\n- 引き出しデータは、引き出しリストと system logs の両方に一時的に重複します。リストを廃止することが将来のステップとして挙げられています。\n"},"ko":{"lang":"ko","tldr":"수수료, priority 보상, 인출처럼 트랜잭션이 없는 ETH 이동에 대해 프로토콜 수준 로그를 emit한다. eth_getLogs로 ETH 잔액의 모든 변화를 볼 수 있다.","tags":["logs","json-rpc","withdrawals","wallets","core"],"related":[7708,4895,6466,8115,4788],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-7799/","markdown":"## 어떤 문제를 해결하나요?\n\n[EIP-7708](/eip-7708/)은 단순한 ETH 전송도 로그를 emit하게 만들어, 지갑이 ERC-20 토큰을 추적하는 것과 같은 방식으로 `eth_getLogs`로 ETH를 추적할 수 있게 합니다. 하지만 ETH 잔액 변화 중에는 트랜잭션 안의 어떤 전송으로도 일어나지 않는 것이 있습니다.\n\n- 발신자가 gas로 내는 수수료\n- 블록의 수수료 수령자에게 지급되는 priority fee\n- 비콘 체인에서의 검증자 인출([EIP-4895](/eip-4895/))\n- 제네시스 할당\n\n지금은 지갑이 놓친 것이 없음을 확신하려면 모든 블록 헤더와 모든 인출 목록을 가져와야 합니다. EIP-7799는 이런 이벤트도 로그로 나타나게 합니다.\n\n## 어떻게 동작하나요?\n\n새 로그는 모두 `SYSTEM_ADDRESS`([EIP-4788](/eip-4788/)에서 쓰인 `0xff…fe`)에서 emit되며, 어떤 사용자 컨트랙트도 이 주소를 사칭할 수 없습니다. 각 로그는 `LOG2`와 같은 형태로, 계정은 `topics[1]`에, wei 단위 금액은 `data`에 들어갑니다.\n\n| 이벤트 | 시점 |\n| --- | --- |\n| `Fee(address,uint256)` | 트랜잭션마다, 해당 트랜잭션 자체 로그 뒤에 추가: 지불된 총 수수료(base + priority + blob) |\n| `PriorityRewards(address,uint256)` | 모아서 처리되는 priority fee가 지급될 때([EIP-8115](/eip-8115/)) |\n| `Withdrawal(address,uint256)` | 비콘 체인 인출마다 |\n| `Genesis(address,uint256)` | 제네시스 할당. 처음부터 이를 채택하는 새 네트워크용 |\n\n`Fee`는 트랜잭션의 영수증에 들어갑니다. 나머지는 블록별 새 **system logs** 목록에 들어가며, 이는 [EIP-6466](/eip-6466/) `Log` 타입의 SSZ `ProgressiveList`입니다. 이 목록의 루트는 새 헤더 필드 `system_logs_root`가 되고, Engine API와 합의 계층의 `ExecutionPayload`에도 추가되어 `receiptsRoot`처럼 검사됩니다.\n\nJSON-RPC에서는 system logs의 `logIndex`가 트랜잭션 로그 뒤에 매겨지고, `transactionHash` / `transactionIndex`는 `null`로 설정됩니다.\n\n## 샘플 코드\n\n특정 주소로 가는 system log 인출을 모두 가져오기(ethers v6):\n\n```ts\nimport { JsonRpcProvider, id, zeroPadValue, toBigInt } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst SYSTEM_ADDRESS = \"0xfffffffffffffffffffffffffffffffffffffffe\";\n\nconst logs = await provider.getLogs({\n  address: SYSTEM_ADDRESS,\n  topics: [id(\"Withdrawal(address,uint256)\"), zeroPadValue(myAddress, 32)],\n  fromBlock: start,\n  toBlock: \"latest\",\n});\n\nfor (const log of logs) {\n  // transactionHash is null for system logs\n  console.log(log.blockNumber, toBigInt(log.data), log.transactionHash);\n}\n```\n\n## 알아둘 점\n\n- 상태: **Draft**. 스펙은 로그 정의 자체도, 예를 들어 ERC-20 `Transfer`나 입금 로그 형식에 맞추기 위해 아직 바뀔 수 있다고 말합니다.\n- 다른 여러 드래프트(EIP-6466 SSZ 영수증, EIP-7916 progressive list, EIP-8115 모아서 처리하는 priority fee)에 의존하며, EIP-7708과 함께일 때만 의미가 있습니다.\n- 헤더 필드를 추가하면 헤더 레이아웃이 고정이라고 가정하는 도구가 깨집니다.\n- 인출 데이터는 일시적으로 인출 목록과 system logs 양쪽에 중복됩니다. 목록을 폐기하는 것이 향후 가능한 단계로 언급되어 있습니다.\n"},"zh":{"lang":"zh","tldr":"为没有交易的 ETH 流动（如手续费、优先费奖励和提款）发出协议级日志，使 eth_getLogs 能够显示 ETH 余额的每一次变化。","tags":["logs","json-rpc","withdrawals","wallets","core"],"related":[7708,4895,6466,8115,4788],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-7799/","markdown":"## 它解决什么问题？\n\n[EIP-7708](/eip-7708/) 让普通的 ETH 转账也会发出日志，这样钱包就可以像追踪 ERC-20 代币那样，用 `eth_getLogs` 追踪 ETH。但有些 ETH 余额变化并不是由交易内部的任何转账引起的：\n\n- 发送者为 gas 支付的手续费，\n- 记入区块手续费接收者的优先费，\n- 来自信标链的验证者提款（[EIP-4895](/eip-4895/)），\n- 创世分配。\n\n目前，钱包要确保没有遗漏，就必须获取每一个区块头和每一份提款列表。EIP-7799 让这些事件同样以日志的形式出现。\n\n## 它如何运作\n\n所有新日志都从 `SYSTEM_ADDRESS`（`0xff…fe`，[EIP-4788](/eip-4788/) 中使用的地址）发出，任何用户合约都无法冒充它。每条日志形如一个 `LOG2`，账户位于 `topics[1]`，以 wei 计的金额位于 `data`：\n\n| 事件 | 时机 |\n| --- | --- |\n| `Fee(address,uint256)` | 每笔交易一条，附加在该交易自己的日志之后：支付的总手续费（base + priority + blob） |\n| `PriorityRewards(address,uint256)` | 批量的优先费入账时（[EIP-8115](/eip-8115/)） |\n| `Withdrawal(address,uint256)` | 每一笔信标链提款 |\n| `Genesis(address,uint256)` | 创世分配，适用于从一开始就采用该标准的新网络 |\n\n`Fee` 位于交易的 receipt 中。其他的进入一个新的、按区块划分的 **system logs** 列表，它是 [EIP-6466](/eip-6466/) `Log` 类型的 SSZ `ProgressiveList`。其根成为新的区块头字段 `system_logs_root`，同时也加入 Engine API 和共识层的 `ExecutionPayload`，并像 `receiptsRoot` 一样进行检查。\n\n在 JSON-RPC 中，system logs 的 `logIndex` 排在交易日志之后，`transactionHash` / `transactionIndex` 设为 `null`。\n\n## 示例代码\n\n获取发给某个地址的所有 system log 提款（ethers v6）：\n\n```ts\nimport { JsonRpcProvider, id, zeroPadValue, toBigInt } from \"ethers\";\n\nconst provider = new JsonRpcProvider(process.env.RPC_URL);\nconst SYSTEM_ADDRESS = \"0xfffffffffffffffffffffffffffffffffffffffe\";\n\nconst logs = await provider.getLogs({\n  address: SYSTEM_ADDRESS,\n  topics: [id(\"Withdrawal(address,uint256)\"), zeroPadValue(myAddress, 32)],\n  fromBlock: start,\n  toBlock: \"latest\",\n});\n\nfor (const log of logs) {\n  // transactionHash is null for system logs\n  console.log(log.blockNumber, toBigInt(log.data), log.transactionHash);\n}\n```\n\n## 需要注意\n\n- 状态：**Draft**。规范称日志定义本身仍可能变化，例如为了与 ERC-20 的 `Transfer` 或存款日志格式对齐。\n- 它依赖其他几项草案（EIP-6466 SSZ receipts、EIP-7916 progressive lists、EIP-8115 批量优先费），并且只有与 EIP-7708 配合才有意义。\n- 新增区块头字段会破坏那些假定区块头布局固定的工具。\n- 提款数据暂时会同时出现在提款列表和 system logs 中；规范提到淘汰该列表是未来可能的一步。\n"}},"requiredBy":[7919]}
