Introduction
Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.
I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.
I also build and publish a variety of tools, libraries, and open-source projects.
EIP-658 replaces the intermediate state root in a transaction receipt with a status code indicating success (1) or failure (0).
This article translates, summarizes, and expands on the following specification.
More EIP explainers:
Overview
EIP-658 changes a field in Ethereum transaction receipts, replacing the intermediate state root with a simple execution status code.
Previously, a receipt recorded the root of the Ethereum state after execution of the corresponding transaction. The new field instead indicates whether the top-level transaction execution succeeded.
This makes it easier for applications and users to determine the execution outcome of transactions, including those invoking contract functions such as transfer or mint. A successful execution status does not necessarily mean that every internal call succeeded or that an application's intended business outcome was achieved.
An intermediate state root is a cryptographic commitment to Ethereum's execution state immediately after a particular transaction. The state includes account balances, nonces, contract code references, and storage commitments.
Ethereum represents its state using a Merkle Patricia trie. The block header's state root commits to the state after processing the block, whereas the historical intermediate state root in a receipt commits to the state following an individual transaction within that block.
A state root can be used together with the appropriate proofs or state data to verify information about the committed state. It does not directly identify whether transaction execution succeeded.
Replacing the intermediate state root with an explicit execution status makes that outcome easier to determine. The block header's state root remains unaffected by this receipt-format change.
State Trie
The state trie is a data structure representing Ethereum account state. Account records contain balances, nonces, storage roots, and code hashes; the corresponding storage tries and code data provide the associated information.
Ethereum uses a Merkle Patricia trie to support authenticated lookup and updates.
Characteristics and functions
- Integrity and verification
- The root hash commits to the trie contents. Changing the committed data changes the root, subject to the security of the hash function.
- Proofs against a trusted root allow clients to verify particular state entries.
- Efficient data access
- The trie supports lookup, insertion, deletion, and updates using its structured key paths.
- Support for light clients
- Light clients can verify individual state entries using proofs against authenticated state roots without retaining the entire state. Their security also depends on how they authenticate those roots and obtain the necessary data.
The state trie is central to tracking and verifying the effects of Ethereum transactions.
Reference: https://medium.com/@eiki1212/ethereum-state-trie-architecture-explained-a30237009d4e
Transaction receipts
A transaction receipt records execution-related information once a transaction is included in a block.
Main information
- Execution status
- Indicates whether top-level execution succeeded or failed.
- The status is 1 for success and 0 for failure. JSON-RPC commonly represents these values as hexadecimal quantities.
- Gas usage
- Records information about gas consumed during execution. The consensus receipt includes cumulative gas used; the JSON-RPC receipt also exposes the individual transaction's gas usage.
- Logs
- Records logs emitted during successful execution, including the emitting address, topics, and data. Logs from reverted execution are discarded.
Receipts help developers inspect transaction outcomes, track contract events, and diagnose application behavior. They do not generally contain complete execution traces or the function's return data.
Motivation
After EIP-140 introduced the REVERT opcode, examining whether a transaction consumed its entire gas allowance was no longer a reliable way to infer failure.
REVERT can terminate execution and roll back its state changes without consuming all remaining gas. Applications therefore needed an explicit indicator of whether top-level execution succeeded.
A full node with access to the relevant historical state can re-execute a transaction to determine its outcome. However, this is not equally practical for all node configurations. Historical fast-sync nodes may lack the state needed to re-execute transactions before their synchronization pivot, and light clients cannot generally perform such re-execution independently.
EIP-658 therefore replaces the intermediate state root in the receipt with an explicit status: 1 for success and 0 for failure.
This addresses the absence of a direct execution-outcome indicator in receipts. It does not add arbitrary function return data or revert reasons to the consensus receipt.
Fast-sync nodes
Fast sync was an Ethereum client synchronization approach designed to reduce the time needed to join the network compared with replaying every historical transaction from genesis.
Characteristics and operation
- Efficient synchronization
- Historical fast sync downloads and validates relevant block headers, bodies, and receipts rather than independently replaying every earlier transaction.
- State download
- At a selected pivot block, the node downloads the corresponding authenticated state and then continues processing subsequent blocks.
- Resource usage
- Avoiding historical replay can reduce synchronization time and resource requirements, but the node does not necessarily retain complete historical state from before the pivot.
Once synchronized, such a node can operate as a full node for the chain tip. Access to arbitrary historical state depends on client configuration and retention policies.
The term fast sync describes a historical synchronization approach. Modern clients may use different synchronization mechanisms.
Reference: https://techmedia-think.hatenablog.com/entry/2021/03/21/165151
Specification
For blocks at or after BYZANTIUM_FORK_BLKNUM, the intermediate state root field in transaction receipts is replaced by a status code.
- 0 indicates failure of the top-level execution, including failure caused by REVERT.
- 1 indicates successful top-level execution.
An internal call can fail while the enclosing transaction succeeds if the caller handles that failure. Conversely, a top-level execution failure still leaves a transaction receipt and can incur gas fees and consume the sender's nonce.
A receipt's status should also be distinguished from transaction inclusion and finality. A successful receipt does not by itself establish that the containing block is finalized.
Rationale
The proposal introduces a minimal change to make transaction success or failure directly observable as part of the Metropolis upgrade. It preserves the remaining receipt structure while replacing the intermediate state commitment with a field useful to applications and clients.
This makes transaction outcomes easier to determine without requiring historical execution-state access or relying on gas consumption as a proxy for success.
Citation
Nick Johnson nick@ethereum.org, "EIP-658: Embedding transaction status code in receipts," Ethereum Improvement Proposals, no. 658, June 2017. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-658.
Conclusion
EIP-658 makes Ethereum transaction execution outcomes directly observable through the receipt status field, replacing the intermediate state root for transactions processed from Byzantium onward.
Questions are welcome via Twitter @cardene777.
Other publications:


