On-chain evidence and trace semantics
About 2109 wordsAbout 7 min
Week 7 · Part 1 — On-chain evidence and trace semantics
Core question — what can you prove happened in one transaction, without trusting its sender's story?
In W5–W6 you mapped how systems are designed and how their economics work. In Week 7 you gather evidence of what actually happened. A transaction's page may say “Send 6 USDC”, but a researcher separates the request, the executed result, and the claim that is not supported by the chain.
Why it matters: a dashboard can label something a swap, payment or withdrawal. Only the transaction, receipt, logs and block let you test that label.
Before you inspect a transaction
| Term | Plain-English meaning |
|---|---|
| Transaction | A signed instruction submitted to Ethereum; it may ask a contract to do work. |
| Receipt | The execution record for a transaction, including its result, gas used and emitted logs. |
| Call | One step in execution that invokes a contract. An internal call is not a separate signed transaction. |
| Event / log | Structured data a contract emits during execution; it is not the complete state. |
| State | Data stored by the network at an address and a particular block. |
| Proxy | In common patterns, a user-facing address that forwards execution to replaceable contract logic. |
| Implementation | The contract logic a proxy uses at the block being investigated. |
An externally owned account (EOA) is an address controlled by a signing key that can authorize a transaction. A single EOA transaction can call contracts, which may make further internal calls and change several pieces of state.
Academy schematic — one signed transaction can produce several observable execution effects; it is not a complete state diff:
An ERC-20 transfer can appear in a contract log while the transaction's ETH value is zero. Logs are emitted records, not the state itself; the receipt reports execution outcome and logs, not a complete before/after state snapshot.
Think of an incident report
The signed transaction is the instruction; the receipt is the outcome; event logs are records of what contracts emitted during execution. Do not treat a requested action as proof that it happened.
Where the picture stops: logs are emitted by contracts. A malicious contract can emit misleading logs. Interpret the emitter and its application binary interface (ABI)—the description used to decode contract functions and events—not just the label.
The hard skill
Reconstruct one real Ethereum transaction as a short evidence trail, with links and a boundary between observation and inference.
After this Part you can:
- distinguish the transaction envelope, execution receipt, ERC-20
Transferlogs and an explorer's human-readable summary; - reconcile the apparent token movement with
valuein ETH; - compute the actual gas fee and identify what remains unknown.
Core / reference material
Four pieces of evidence
An EOA can originate a signed transaction. A contract account executes code when called; it does not independently originate a signed transaction. Address ≠ person: one person may use many accounts; a service address may serve many people.
| Record | What you can establish | What it does not establish |
|---|---|---|
| Transaction | from, to, input data (also called calldata: encoded function and arguments), ETH value, gas limit | Whether the attempted action succeeded |
| Receipt | status, gasUsed, effectiveGasPrice, emitted logs | The user's intent or why they transferred |
| Event log | What an identified contract emitted and its indexed arguments | That any human-readable explorer label is trustworthy on its own |
| Block | Inclusion height and timestamp | Whether two addresses belong to the same real-world person |
For an ERC-20 transfer, the ETH value is often 0 because the asset is moved by token-contract logic rather than an ETH transfer. The Transfer(from, to,value) event has the token contract as its emitter. Its value is a raw integer: divide by that token's decimals to obtain display units. See EIP-20.
The receipt, not the gas limit, gives the execution gas actually used. For a standard execution-gas transaction, its fee is:
FeeETH=109gasUsed×effectiveGasPricegwei
The 109 converts gwei to ETH; multiply the gas actually used by its effective price, not the transaction's maximum gas limit. This is the execution-gas component; a blob transaction can incur a separate blob fee (EIP-4844).
The normal Transactions tab is only the envelope
| View | What you inspect | Common mistake |
|---|---|---|
| Normal transaction | Signed instruction, ETH value, calldata | Reading to as the final economic beneficiary |
| Receipt / status | Top-level execution or revert, gas, logs | Assuming Success means every intended sub-operation succeeded |
| Calls / Internal Txns | Execution trace; internal ETH movements where indexed | Treating each call as a separately signed transaction, or this tab as every call |
| Token transfers / logs | Identified token's Transfer events and other emitted events | Adding ERC-20 units to ETH value or trusting arbitrary event text |
| Contract state | Values at a specified address and block | Treating an event as a complete state snapshot |
Internal calls are execution effects, not extra signed transactions. Some move ETH, many move none. Explorer coverage and filtering differ; a missing internal transfer row does not establish that no contract logic ran. Logs record emitted data; balances and other state need the correct contract and block.
Proxy: one address, replaceable logic
Academy schematic — one simplified upgradeable delegatecall pattern; not every proxy uses this architecture:
A proxy keeps the user-facing address and persistent storage while delegating execution to an implementation. Upgrades can change logic without changing that address. Record proxy → implementation at the relevant block → upgrade authority/admin. ERC-1967 specifies conventional implementation, beacon and admin storage slots; not every proxy follows it, and a slot alone does not explain all permissions. Transparent and UUPS patterns place upgrade checks differently.
Research traps: reading only the proxy bytecode; applying today's implementation to an old transaction; attributing all activity to the logic address; querying the implementation's storage instead of the proxy's; or ignoring who can replace the logic. Use the explorer's proxy/read-as-proxy view where available, then trace authority in verified code. If unresolved, write unknown, not immutable.
Landscape — modern account-model nuance
EIP-7702 lets an EOA designate code for delegated execution while the account remains key-controlled. This is why “code present” is not a complete account classification rule; it does not change the evidence distinctions in this Part. See EIP-7702 for the exact transaction and authorization model.
Worked example: the receipt is not the instruction
Open this real Ethereum transaction on Etherscan (from 27 June 2026). We read only the first three items for now:
- The envelope's
tois the USDC token contract (0xA0b8…eB48), not the person receiving USDC. - The ETH
valueis 0 ETH. That does not mean no token moved. - The receipt says Success, and the ERC-20 token-transfer section reports a 6 USDC transfer. That is evidence of token movement, unlike the ETH
valuefield.
A further check uses the receipt's logs to verify the emitting contract, recipient and amount, rather than relying only on Etherscan's action label.
Hands-on task
Use that same transaction so everyone can compare their evidence. Aim for 25–30 minutes. Work from the transaction's Overview, Logs and, where available, its Input Data and token contract page. If you have access to an Ethereum remote procedure call (RPC) endpoint, you may cross-check its receipt; no coding is required.
- Write a six-line transaction record: chain, full hash, Coordinated Universal Time (UTC), block, transaction sender, transaction
to, and receipt status. Link the explorer page. - Trace the token movement: name the token and its contract, sender, recipient, displayed amount, and the relevant
Transferlog. State whose address appears intransaction.toand whose appears in the event'sto. Explain why these are different. - Reconcile costs: record ETH
value, gas limit, gas used, effective gas price and total paid in ETH. Show your multiplication; distinguish the gas limit from what was actually charged. - Write an evidence table: at least four claims, each tagged observed / inferred / unknown, and a precise URL + page section or receipt field. Include one claim you cannot conclude (such as sender intent, legal ownership or the recipient's identity).
- Recognise the contract structure. Open the USDC Code page and record its proxy indicator and linked implementation (or what the explorer cannot resolve). This is a real proxy example, not a claim that USDC uses ERC-1967. State why today's implementation is insufficient to explain old execution. Do not connect a wallet.
Out of scope: profiling wallet owners, assuming transfer motive, and tracing all transactions before or after the case.
Evidence required
- Your transaction record and token movement trace.
- Gas calculation with units.
- Evidence table with an uncertainty, plus the dated proxy/implementation link. No separate report is required.
Completion and revision
This Part is worth 100 points in the Academy progression. Academy participants submit it for a binary Complete or Revise review against the criteria above. Independent readers may use those criteria as a self-check; formal points are tracked through organised Academy participation. There is no partial-score rubric.
Your work is complete when:
Further exploration — optional, not assessed
- Retrieve the raw receipt via
eth_getTransactionReceipt, compare the returnedlogsandeffectiveGasPricewith the explorer, and note any presentation differences. Some free RPCs returnnullfor older receipts because they have pruned them; Tenderly's public gateway,https://mainnet.gateway.tenderly.co, returned this one on 21 October 2026. - Find the
Transferevent signature in EIP-20. Which arguments are indexed?
Sources and attribution
- Etherscan — USDC transfer transaction, 27 June 2026 — Link, the case transaction
- EIP-20 — ERC-20 Token Standard — Link, referenced only
- Ethereum Execution API — eth_getTransactionReceipt — Link, referenced only
- ethereum.org — Accounts and Transactions — Link, primary technical reference; checked 26 October 2026
- ERC-1967 — Proxy storage slots — Link, primary standard; not universal to all proxies
- OpenZeppelin — Proxy API — Link, implementation documentation
- Etherscan — Understanding an Ethereum transaction and Proxy types — Link, explorer terminology only; older consensus discussion is not used