Read the receipt before diagnosing the cause
For post-Byzantium receipts, EIP-658 defines status 0 as top-level failure and 1 as success. Neither value is a contract-specific error message.
| Evidence | What it tells you |
|---|---|
| Transaction hash, block hash and block number | Which included transaction you are examining. |
gasUsed | The gas charged to this transaction. |
| Actual execution gas price | The per-gas price used for the charge. ethers v6 exposes this as receipt gasPrice. |
ethers v6 receipt fee | The execution-fee value in wei. This is a library property, not a field that every raw RPC receipt must contain. |
cumulativeGasUsed | Gas used by this transaction and earlier transactions in the block; do not use it as this transaction's gas consumption. |
The field definitions are documented in the ethers v6 TransactionReceipt reference.
REVERT removes the reverted execution's logs
EIP-140 defines REVERT as aborting an execution and undoing its state changes. Logs from that reverted execution are also discarded. An event emitted before a top-level revert therefore does not survive in the receipt as a convenient error breadcrumb.
Revert return data is different from an event log. It can convey information to a caller, but EIP-140 does not prescribe a universal error format. A reverted subcall also returns a failure signal to its caller; that call-level result must not be confused with the receipt's top-level outcome.
Calculate the execution fee from the actual price
For an ordinary EIP-1559 transaction on Ethereum mainnet, the execution charge is:
execution fee = gasUsed × effective gas price
The EIP-1559 accounting defines the effective price as the block base fee plus the smaller of the priority-fee cap and the remaining room under the maximum-fee cap. Its accounting charges the gas allowance and credits back unused gas. That protocol accounting occurs during block execution; broadcasting a transaction is not evidence that this charge has happened.
maxFeePerGas is a ceiling, not the final bill. The base-fee portion is burned and the priority-fee portion goes to the block producer. Unused gas being credited back does not mean the computation already performed becomes free.
Illustrative receipt: account for a failed execution
Illustrative example, not a live transaction or a complete RPC receipt. Assume an included mainnet transaction with an 80,000 gas limit, a 30 gwei base fee, a 2 gwei priority-fee cap and a 50 gwei maximum-fee cap. The EIP-1559 rules give an effective price of 32 gwei.
| Receipt field | Invented value | Reading |
|---|---|---|
status | 0x0 | Top-level failure; no cause is encoded here. |
gasUsed | 0xc350 = 50,000 | Per-transaction gas charged. |
effectiveGasPrice | 0x773594000 = 32,000,000,000 wei/gas | Actual execution price. |
cumulativeGasUsed | 0x30d40 = 200,000 | Block running total; exclude it from this calculation. |
50,000 × 32,000,000,000 = 1,600,000,000,000,000 wei = 0.0016 ETH. The base-fee share is 0.0015 ETH and the priority-fee share is 0.0001 ETH. Using the full gas limit or the maximum-fee cap would overstate this example’s execution charge. These fields still do not establish whether a REVERT, Out-of-Gas or another condition caused the failure.
Field names and hexadecimal quantities follow the Ethereum JSON-RPC receipt documentation. The arithmetic is an educational calculation; no transaction was submitted or replayed.
A high gas total is not a diagnosis
A normal REVERT leaves unused gas available. EIP-140 also specifies cases where insufficient gas to perform REVERT, or a stack underflow, instead consumes the remaining gas. These distinctions make gas consumption alone an unreliable explanation for a failure.
Treat a transaction close to its gas limit as a reason to inspect execution evidence, rather than proof of Out-of-Gas. Keep the gas limit separate from the price per gas: increasing a priority fee does not itself provide more execution gas. EIP-1559 requires the fee cap to cover the inclusion block's base fee; a cap below that base fee is an inclusion-validity problem, not an explanation for an included transaction running out of gas.
Check the limits of your diagnostic tools
The ethers v6 documentation describes getResult() as retrieving an execution return value, with limited support requiring an archive node and debug or trace APIs. Do not promise that any provider will return a readable revert reason through that method.
If the needed execution evidence is unavailable, record the cause as unresolved. A receipt status and a plausible guess are not a substitute for a supported diagnostic result.
Keep account authorization separate
EIP-7702 processes authorization tuples before the main execution. A tuple that fails its authorization checks is skipped; that is different from a later execution failure. Processed delegation indicators are not rolled back when that later execution fails. Consequently, a failed receipt does not establish that account delegation remained unchanged.
A practical reading order
- Match the transaction and block identifiers.
- Read the top-level status without assigning an unsupported cause.
- Use per-transaction gas usage and the actual execution price to account for the fee.
- Obtain supported execution evidence if the precise failure matters before a retry.
- Check resulting delegation separately if the transaction involved EIP-7702.
This guide covers Ethereum mainnet execution fees. Blob charges, L2 fee components and sponsored-account billing require their own accounting. It is an AI-assisted documentation review, not a transaction replay, a wallet test or a guaranteed retry procedure.
Jepeta evidence and method
- source audit — Documentation-based comparison of receipt outcome, reverted logs, actual execution-fee accounting and persistent delegation, organized into an evidence-first reading checklist. No transaction replay or wallet experiment is claimed. · observed Nov 9, 2026
- calculation — Illustrative EIP-1559 arithmetic and receipt interpretation with declared invented inputs. · observed Nov 10, 2026
Editorial transparency
AI-assisted review of Ethereum transaction specifications and ethers documentation. No transaction was replayed or wallet tested. No affiliate links are enabled. Examples are explicitly illustrative. They do not represent live chain observations or completed wallet or validator tests.
Sources
- EIP-658: Embedding transaction status code in receipts · primary · verified Nov 9, 2026
- EIP-140: REVERT instruction · primary · verified Nov 9, 2026
- EIP-1559: Fee market change for ETH 1.0 chain · primary · verified Nov 9, 2026
- ethers v6 Providers: TransactionReceipt · primary · verified Nov 9, 2026
- EIP-7702: Set Code for EOAs · primary · verified Nov 9, 2026
- Ethereum JSON-RPC: eth_getTransactionReceipt · primary · verified Nov 10, 2026


