{
  "id": 7889,
  "title": "EIP-7889: Emit log on revert",
  "status": "Stagnant",
  "type": "Standards Track",
  "category": "Core",
  "summary": "This automatically makes error messages from failed transactions easily accessible by emitting them as logs. Currently, when a transaction fails (reverts), the error message explaining why it failed is hard to get - you need to request expensive transaction tracing to access it. This creates overhead for users who want to understand why their transaction failed and for nodes that have to replay entire transactions just to extract small error messages. This EIP solves the problem by automatically emitting a log containing the revert message whenever the REVERT opcode is called. This makes error messages accessible through standard RPC calls without any tracing, helping wallets, block explorers, and other tools display helpful error messages to users. It's completely backward compatible and doesn't require any new opcodes or RPC methods.",
  "impacts": [],
  "discussion_url": "https://ethereum-magicians.org/t/eip-7889-emit-log-on-revert/22918",
  "source_markdown_url": "https://github.com/ethereum/EIPs/blob/master/EIPS/eip-7889.md",
  "canonical_url": "/latest/eips/7889.json",
  "markdown_url": "/latest/eips/7889.md",
  "citations": [
    {
      "recordId": "eip-7889",
      "artifactPath": "normalized/7889.json",
      "url": "/records/proposal/eip-7889/normalized/7889.json",
      "label": "EIP-7889: Emit log on revert",
      "snippet": "This automatically makes error messages from failed transactions easily accessible by emitting them as logs. Currently, when a transaction fails (reverts), the error message explaining why it failed is hard to get - you "
    }
  ]
}
