{"eip":8062,"title":"Add sweep withdrawal fee for 0x01 validators","description":"Improve stake consolidation and fairness by imposing a \"sweep\" withdrawal fee for `0x01` validators set to 0.05% of the withdrawn amount.","authors":["Anders Elowsson (@anderselowsson)","Toni Wahrstätter (@nerolation)","Francesco D'Amato (@fradamt)","Ben Adams (@benaadams)","Maria Inês Silva (@misilva73)"],"status":"Draft","type":"Standards Track","category":"Core","created":"2025-10-28","requires":[4895,7251],"discussionsTo":"https://ethereum-magicians.org/t/eip-8062-add-sweep-withdrawal-fee-for-0x01-validators/26003","repo":"EIPs","label":"EIP-8062","officialUrl":"https://eips.ethereum.org/EIPS/eip-8062","sourceUrl":"https://github.com/ethereum/EIPs/blob/master/EIPS/eip-8062.md","url":"https://eips.huatuo.xyz/eip-8062/","tldr":{"en":"Charges a 0.05 % fee, burned on the consensus layer, on the automatic partial \"sweep\" withdrawals of `0x01` validators, to pay for the resources they use and nudge large stakers toward consolidated `0x02` validators.","ja":"`0x01` バリデータの自動的な部分的「スイープ」引き出しに 0.05 % の手数料をかけ、コンセンサスレイヤーでバーンする。使用するリソースの対価とし、大規模ステーカーを統合された `0x02` バリデータへ促す。","ko":"`0x01` 검증자의 자동 부분 \"스윕\" 출금에 0.05 % 수수료를 부과하고 합의 계층에서 소각한다. 이들이 사용하는 자원의 비용을 충당하고 대형 스테이커가 통합된 `0x02` 검증자로 옮겨 가도록 유도한다.","zh":"对 `0x01` 验证者自动进行的部分\"扫取\"提款收取 0.05 % 的费用，并在共识层销毁，用来抵偿它们所占用的资源，同时促使大型质押者转向合并后的 `0x02` 验证者。"},"tags":["consensus","staking","withdrawals","consolidation","validators"],"explainers":{"en":{"lang":"en","tldr":"Charges a 0.05 % fee, burned on the consensus layer, on the automatic partial \"sweep\" withdrawals of `0x01` validators, to pay for the resources they use and nudge large stakers toward consolidated `0x02` validators.","tags":["consensus","staking","withdrawals","consolidation","validators"],"related":[4895,7251,8068,7002],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/eip-8062/","markdown":"## What problem does it solve?\n\nValidators with `0x01` withdrawal credentials are capped at a 32 ETH effective balance. Everything above 32 ETH is automatically skimmed to the withdrawal address by the withdrawal \"sweep\" ([EIP-4895](/eip-4895/)) for free. These validators are also very capital-efficient, because almost no ETH sits idle above the effective balance.\n\nEthereum's fast-finality plans depend on stake **consolidation**: large staking providers moving from many 32 ETH `0x01` validators to fewer, bigger `0x02` compounding validators (up to 2048 ETH, from [EIP-7251](/eip-7251/)). Today the incentives point the other way: the free sweep and better capital efficiency, plus switching costs, give little reason to migrate. Meanwhile each sweep withdrawal consumes consensus- and execution-layer resources that nobody pays for.\n\n## How it works\n\nA one-line change in `process_withdrawals()`: when a validator **without** compounding credentials receives a **partial** withdrawal (not a full exit), its balance is reduced by an extra `amount // WITHDRAWAL_FEE_FRACTION`. The fee is not paid to anyone; it is simply removed from the balance on the consensus layer.\n\n| Constant | Value | Meaning |\n| --- | --- | --- |\n| `WITHDRAWAL_FEE_FRACTION` | 2000 | fee = 1/2000 = 0.05 % of the skimmed amount |\n\n- `0x02` compounding validators and full exits pay nothing.\n- The withdrawal amount sent to the execution layer is unchanged, so after skimming the validator's balance dips slightly below 32 ETH.\n- A percentage, rather than a fixed fee, keeps the yearly cost stable even if sweeps become more frequent once fewer `0x01` validators remain.\n\nThe authors size the fee to roughly match the execution-layer cost of a withdrawal (about 2,204 gas by their accounting) and estimate about 0.00048 ETH per validator per year, assuming a 3 % consensus-layer yield.\n\n## Sample code\n\nThe modified loop (consensus-spec Python):\n\n```python\nWITHDRAWAL_FEE_FRACTION = 2000\n\ndef process_withdrawals(state: BeaconState, payload: ExecutionPayload) -\u003e None:\n    ...\n    for w in expected_withdrawals:\n        vi = w.validator_index\n        fee = 0\n        is_partial = w.amount != state.balances[vi]\n        if not has_compounding_withdrawal_credential(state.validators[vi]) and is_partial:\n            fee = w.amount // WITHDRAWAL_FEE_FRACTION   # 0.05 %\n        decrease_balance(state, vi, w.amount + fee)\n```\n\nExpected fee for one skim, in Gwei:\n\n```python\nskim_gwei = 23_500_000          # ~0.0235 ETH, the average skim cited in the spec\nfee_gwei = skim_gwei // 2000    # 11_750 Gwei\n```\n\n## Things to know\n\n- **Status: Draft.** It would need a consensus-layer hard fork.\n- The spec discusses higher alternative fees (`WITHDRAWAL_FEE_FRACTION` = 400, 200 or 100, i.e. 0.25 %, 0.5 % or 1 %) in case [EIP-8068](/eip-8068/), which addresses the capital-efficiency gap of `0x02` validators, is not shipped together.\n- Converting to `0x02` credentials removes the fee; partial withdrawals for `0x02` validators remain available through execution-layer requests ([EIP-7002](/eip-7002/)), which are charged on the EL instead.\n- Some staking setups whose withdrawal contracts depend on `0x01` credentials may find switching costly; the authors acknowledge this but argue the migration must happen eventually.\n"},"ja":{"lang":"ja","tldr":"`0x01` バリデータの自動的な部分的「スイープ」引き出しに 0.05 % の手数料をかけ、コンセンサスレイヤーでバーンする。使用するリソースの対価とし、大規模ステーカーを統合された `0x02` バリデータへ促す。","tags":["consensus","staking","withdrawals","consolidation","validators"],"related":[4895,7251,8068,7002],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ja/eip-8062/","markdown":"## 何を解決するのか\n\n引き出しクレデンシャルが `0x01` のバリデータは、実効残高が 32 ETH に制限されます。32 ETH を超える分は、引き出しの「スイープ」（[EIP-4895](/eip-4895/)）によって、無料で引き出しアドレスに自動的に回収されます。これらのバリデータは資本効率も非常に高く、実効残高を超えて遊んでいる ETH がほとんどありません。\n\nEthereum の高速ファイナリティ計画は、ステークの**統合**に依存しています。大規模なステーキング事業者が、多数の 32 ETH `0x01` バリデータから、より少数で大きな `0x02` コンパウンディングバリデータ（[EIP-7251](/eip-7251/) による最大 2048 ETH）へ移ることです。現状のインセンティブは逆向きです。無料のスイープと優れた資本効率に切り替えコストが加わり、移行する理由がほとんどありません。一方で、スイープの引き出しのたびにコンセンサスレイヤーと実行レイヤーのリソースが消費されますが、誰もその対価を払っていません。\n\n## 仕組み\n\n`process_withdrawals()` の 1 行の変更です。コンパウンディングクレデンシャルを**持たない**バリデータが**部分的な**引き出し（完全な退出ではない）を受けるとき、残高は追加で `amount // WITHDRAWAL_FEE_FRACTION` だけ減らされます。手数料は誰にも支払われず、コンセンサスレイヤーで残高から単に取り除かれます。\n\n| 定数 | 値 | 意味 |\n| --- | --- | --- |\n| `WITHDRAWAL_FEE_FRACTION` | 2000 | 手数料 = 1/2000 = 回収額の 0.05 % |\n\n- `0x02` コンパウンディングバリデータと完全な退出は何も支払いません。\n- 実行レイヤーに送られる引き出し額は変わらないため、回収後のバリデータの残高は 32 ETH をわずかに下回ります。\n- 固定額ではなく割合にすることで、`0x01` バリデータが減ってスイープの頻度が上がっても、年間のコストは安定します。\n\n著者らは、手数料を引き出しの実行レイヤーコスト（著者らの計算で約 2,204 ガス）におおむね合わせて設定し、コンセンサスレイヤーの利回りを 3 % と仮定して、バリデータ 1 つあたり年間約 0.00048 ETH と見積もっています。\n\n## サンプルコード\n\n変更後のループ（consensus-spec の Python）:\n\n```python\nWITHDRAWAL_FEE_FRACTION = 2000\n\ndef process_withdrawals(state: BeaconState, payload: ExecutionPayload) -\u003e None:\n    ...\n    for w in expected_withdrawals:\n        vi = w.validator_index\n        fee = 0\n        is_partial = w.amount != state.balances[vi]\n        if not has_compounding_withdrawal_credential(state.validators[vi]) and is_partial:\n            fee = w.amount // WITHDRAWAL_FEE_FRACTION   # 0.05 %\n        decrease_balance(state, vi, w.amount + fee)\n```\n\n1 回の回収に対する想定手数料（Gwei）:\n\n```python\nskim_gwei = 23_500_000          # ~0.0235 ETH, the average skim cited in the spec\nfee_gwei = skim_gwei // 2000    # 11_750 Gwei\n```\n\n## 知っておくべきこと\n\n- **ステータス: Draft。** コンセンサスレイヤーのハードフォークが必要です。\n- 仕様は、`0x02` バリデータの資本効率の差に対処する [EIP-8068](/eip-8068/) が同時に出荷されない場合に備えて、より高い手数料の代替案（`WITHDRAWAL_FEE_FRACTION` = 400、200、100、つまり 0.25 %、0.5 %、1 %）を検討しています。\n- `0x02` クレデンシャルへ変換すれば手数料はかかりません。`0x02` バリデータの部分的な引き出しは、実行レイヤーのリクエスト（[EIP-7002](/eip-7002/)）で引き続き利用でき、そちらは EL 側で課金されます。\n- 引き出しコントラクトが `0x01` クレデンシャルに依存しているステーキング構成では、切り替えコストが大きい場合があります。著者らはこれを認めたうえで、移行はいずれ起こらなければならないと主張しています。\n"},"ko":{"lang":"ko","tldr":"`0x01` 검증자의 자동 부분 \"스윕\" 출금에 0.05 % 수수료를 부과하고 합의 계층에서 소각한다. 이들이 사용하는 자원의 비용을 충당하고 대형 스테이커가 통합된 `0x02` 검증자로 옮겨 가도록 유도한다.","tags":["consensus","staking","withdrawals","consolidation","validators"],"related":[4895,7251,8068,7002],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/ko/eip-8062/","markdown":"## 어떤 문제를 해결하나요?\n\n출금 자격 증명이 `0x01`인 검증자는 유효 잔액이 32 ETH로 제한됩니다. 32 ETH를 넘는 금액은 출금 \"스윕\"([EIP-4895](/eip-4895/))이 무료로 출금 주소에 자동으로 걷어 갑니다. 이런 검증자는 자본 효율도 매우 높은데, 유효 잔액 위로 놀고 있는 ETH가 거의 없기 때문입니다.\n\n이더리움의 빠른 파이널리티 계획은 스테이킹 **통합**에 달려 있습니다. 대형 스테이킹 사업자가 많은 32 ETH `0x01` 검증자에서 더 적고 더 큰 `0x02` 컴파운딩 검증자([EIP-7251](/eip-7251/)에 따라 최대 2048 ETH)로 옮겨 가는 것입니다. 지금은 인센티브가 반대 방향입니다. 무료 스윕과 더 나은 자본 효율에 전환 비용까지 더해져 이전할 이유가 거의 없습니다. 한편 스윕 출금은 건마다 합의 계층과 실행 계층의 자원을 소모하는데 아무도 그 비용을 내지 않습니다.\n\n## 어떻게 동작하나요?\n\n`process_withdrawals()`의 한 줄 변경입니다. 컴파운딩 자격 증명이 **없는** 검증자가 **부분** 출금(전체 퇴출이 아님)을 받으면 잔액이 추가로 `amount // WITHDRAWAL_FEE_FRACTION`만큼 줄어듭니다. 수수료는 누구에게도 지급되지 않고 합의 계층에서 잔액에서 그냥 제거됩니다.\n\n| 상수 | 값 | 의미 |\n| --- | --- | --- |\n| `WITHDRAWAL_FEE_FRACTION` | 2000 | 수수료 = 1/2000 = 스윕된 금액의 0.05 % |\n\n- `0x02` 컴파운딩 검증자와 전체 퇴출은 아무것도 내지 않습니다.\n- 실행 계층으로 보내는 출금액은 그대로이므로, 스윕 후 검증자의 잔액은 32 ETH를 약간 밑돕니다.\n- 고정 수수료가 아니라 비율로 정하면, `0x01` 검증자가 줄어 스윕이 더 자주 일어나더라도 연간 비용이 안정적으로 유지됩니다.\n\n저자들은 수수료를 출금의 실행 계층 비용(저자들의 계산으로 약 2,204 가스)과 대략 맞추고, 합의 계층 수익률을 3 %로 가정해 검증자당 연간 약 0.00048 ETH로 추산합니다.\n\n## 샘플 코드\n\n수정된 루프(consensus-spec Python):\n\n```python\nWITHDRAWAL_FEE_FRACTION = 2000\n\ndef process_withdrawals(state: BeaconState, payload: ExecutionPayload) -\u003e None:\n    ...\n    for w in expected_withdrawals:\n        vi = w.validator_index\n        fee = 0\n        is_partial = w.amount != state.balances[vi]\n        if not has_compounding_withdrawal_credential(state.validators[vi]) and is_partial:\n            fee = w.amount // WITHDRAWAL_FEE_FRACTION   # 0.05 %\n        decrease_balance(state, vi, w.amount + fee)\n```\n\n스윕 한 번당 예상 수수료(Gwei):\n\n```python\nskim_gwei = 23_500_000          # ~0.0235 ETH, the average skim cited in the spec\nfee_gwei = skim_gwei // 2000    # 11_750 Gwei\n```\n\n## 알아둘 점\n\n- **상태: Draft.** 합의 계층 하드포크가 필요합니다.\n- 사양은 `0x02` 검증자의 자본 효율 격차를 다루는 [EIP-8068](/eip-8068/)이 함께 출시되지 않을 경우에 대비해 더 높은 대안 수수료(`WITHDRAWAL_FEE_FRACTION` = 400, 200, 100, 즉 0.25 %, 0.5 %, 1 %)도 논의합니다.\n- `0x02` 자격 증명으로 전환하면 수수료가 사라집니다. `0x02` 검증자의 부분 출금은 실행 계층 요청([EIP-7002](/eip-7002/))으로 계속 가능하며, 이쪽은 EL에서 요금이 부과됩니다.\n- 출금 컨트랙트가 `0x01` 자격 증명에 의존하는 일부 스테이킹 구성은 전환 비용이 클 수 있습니다. 저자들은 이를 인정하면서도 이전은 결국 이뤄져야 한다고 주장합니다.\n"},"zh":{"lang":"zh","tldr":"对 `0x01` 验证者自动进行的部分\"扫取\"提款收取 0.05 % 的费用，并在共识层销毁，用来抵偿它们所占用的资源，同时促使大型质押者转向合并后的 `0x02` 验证者。","tags":["consensus","staking","withdrawals","consolidation","validators"],"related":[4895,7251,8068,7002],"updated":"2026-10-19","url":"https://eips.huatuo.xyz/zh/eip-8062/","markdown":"## 它解决什么问题？\n\n提款凭证为 `0x01` 的验证者，有效余额上限为 32 ETH。超过 32 ETH 的部分会被提款\"扫取\"（[EIP-4895](/eip-4895/)）免费自动转入提款地址。这类验证者的资本效率也很高，因为有效余额之上几乎没有闲置的 ETH。\n\n以太坊的快速最终性计划依赖于质押**合并**：大型质押服务商从众多 32 ETH 的 `0x01` 验证者，转向数量更少、规模更大的 `0x02` 复利验证者（来自 [EIP-7251](/eip-7251/)，最高 2048 ETH）。如今的激励方向恰好相反：免费的扫取、更好的资本效率，再加上切换成本，几乎没有理由迁移。与此同时，每一笔扫取提款都要消耗共识层和执行层的资源，却没有人为此付费。\n\n## 它如何运作\n\n只是 `process_withdrawals()` 中的一行改动：当**没有**复利凭证的验证者收到**部分**提款（而非完全退出）时，其余额会额外减少 `amount // WITHDRAWAL_FEE_FRACTION`。这笔费用不会付给任何人，只是在共识层从余额中直接扣除。\n\n| 常量 | 值 | 含义 |\n| --- | --- | --- |\n| `WITHDRAWAL_FEE_FRACTION` | 2000 | 费用 = 1/2000 = 被扫取金额的 0.05 % |\n\n- `0x02` 复利验证者和完全退出无需支付任何费用。\n- 发送到执行层的提款金额不变，所以扫取之后，验证者的余额会略低于 32 ETH。\n- 采用百分比而不是固定费用，可以让年度成本保持稳定，即使剩下的 `0x01` 验证者变少后扫取变得更频繁也是如此。\n\n作者把费用定在大致等于一次提款在执行层的成本（按他们的核算约为 2,204 gas），并在共识层收益率为 3 % 的假设下，估计每个验证者每年约为 0.00048 ETH。\n\n## 示例代码\n\n修改后的循环（consensus-spec Python）：\n\n```python\nWITHDRAWAL_FEE_FRACTION = 2000\n\ndef process_withdrawals(state: BeaconState, payload: ExecutionPayload) -\u003e None:\n    ...\n    for w in expected_withdrawals:\n        vi = w.validator_index\n        fee = 0\n        is_partial = w.amount != state.balances[vi]\n        if not has_compounding_withdrawal_credential(state.validators[vi]) and is_partial:\n            fee = w.amount // WITHDRAWAL_FEE_FRACTION   # 0.05 %\n        decrease_balance(state, vi, w.amount + fee)\n```\n\n一次扫取的预期费用，以 Gwei 计：\n\n```python\nskim_gwei = 23_500_000          # ~0.0235 ETH, the average skim cited in the spec\nfee_gwei = skim_gwei // 2000    # 11_750 Gwei\n```\n\n## 需要注意\n\n- **状态：Draft。** 它需要一次共识层硬分叉。\n- 规范还讨论了更高的备选费用（`WITHDRAWAL_FEE_FRACTION` = 400、200 或 100，即 0.25 %、0.5 % 或 1 %），以防处理 `0x02` 验证者资本效率差距的 [EIP-8068](/eip-8068/) 没有一同发布。\n- 转换为 `0x02` 凭证即可免除该费用；`0x02` 验证者的部分提款仍可通过执行层请求（[EIP-7002](/eip-7002/)）进行，这类请求改在 EL 一侧收费。\n- 一些提款合约依赖 `0x01` 凭证的质押方案，切换成本可能很高；作者承认这一点，但认为迁移最终必须发生。\n"}}}
