---
eip: 867
label: EIP-867
title: Standardized Ethereum Recovery Proposals
status: Stagnant
type: Meta
created: 2018-02-02
official: https://eips.ethereum.org/EIPS/eip-867
source: https://github.com/ethereum/EIPs/blob/master/EIPS/eip-867.md
canonical: https://eips.huatuo.xyz/eip-867/
lang: en
tldr: "Proposed a standard format for 'Ethereum Recovery Proposals' (ERPs) that would return lost funds through irregular state changes, using a machine-readable State Change Object that clients apply at a set block."
tags: [process, meta, fund-recovery, governance, irregular-state-change]
---

# EIP-867: Standardized Ethereum Recovery Proposals

> Provide a standardized format for Ethereum Recovery Proposals (ERPs), which relate to recovery of certain classes of lost funds. Individual ERPs will follow the same process as any EIP, but will be formatted and evaluated in a standard way to ensure consistency and transparency.

**TL;DR:** Proposed a standard format for 'Ethereum Recovery Proposals' (ERPs) that would return lost funds through irregular state changes, using a machine-readable State Change Object that clients apply at a set block.

## What problem does it solve?

By 2018 a lot of ether was stuck because of bugs and mistakes: contracts that could no longer be used, funds sent to the wrong address, and so on. Each request to fix such a case was ad hoc, hard to judge, and very controversial.

EIP-867 does not argue for any particular recovery. Instead it proposes a **standard format and objective bar** for such requests, called Ethereum Recovery Proposals (ERPs). Each case would be judged the same way, and clients could apply an approved fix without writing custom code.

## How it works

An ERP is a normal EIP with a fixed set of parts:

- **Simple summary** and **detailed description** of the corrective actions.
- **Justification**: why the fix needs an irregular state change and why no directly affected party would object. The spec gives "considerable", "insufficient" and "unacceptable" examples.
- **Verification script**: an auditable JavaScript (web3.js) script with a hard-coded source block. Anyone can rerun it to regenerate the exact same output.
- **State Change Object (SCO)**: the script's JSON output, which clients read directly.

An SCO has an `erpId`, a `targetBlock`, an ordered list of `actions`, and metadata. Only two action types are allowed, to keep risk small:

- `weiTransfer`: move a stated amount of wei from one address to another.
- `storeCode`: replace the code at an address, but only if the existing code matches an `expectedCodeHash`.

Clients would load SCO files from a folder at startup. At the target block they would apply all actions as one batch (if one fails, all fail) and write the `erpId` into the block's extra data. Adding an ERP to a client would mean adding just one SCO file.

## Sample code

An illustrative State Change Object (addresses and values are placeholders):

```json
{
  "erpId": "EIP-XXXX",
  "targetBlock": 12345678,
  "actions": [
    {
      "type": "weiTransfer",
      "fromAddress": "0x1111111111111111111111111111111111111111",
      "toAddress": "0x2222222222222222222222222222222222222222",
      "value": "501000000000000000000"
    }
  ],
  "metadata": {
    "sourceBlock": 12300000,
    "version": "1.0.0"
  }
}
```

## Things to know

- This proposal is Stagnant and was never adopted. No client applies SCO files, and no ERP has gone live.
- The idea was highly contested. Critics saw any standard path to irregular state changes as a threat to immutability. Supporters saw it as a fair way to handle clear-cut mistakes. [EIP-999](/eip-999/), which proposed restoring the accidentally self-destructed Parity wallet library, was withdrawn, and [EIP-1010](/eip-1010/) is often read as a parody of such requests.
- The only irregular state change Ethereum mainnet has made is the 2016 DAO Fork ([EIP-779](/eip-779/)), which predates this proposal.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-867
