Building EVMTraceX: A Terminal-First Explorer for EVM Execution Traces
EVM transaction traces contain valuable evidence about how a contract executes: nested calls, gas usage, reverts, errors, and storage changes. But navigating raw trace output can be difficult when you need to understand how individual execution frames relate to each other. EVMTraceX is a terminal-first EVM execution trace explorer written in Rust. It turns supported execution traces into an…
EVMTraceX is a terminal-first tool designed to help developers, auditors and security researchers explore execution trace data from Ethereum Virtual Machine (EVM) transactions. It provides an interactive interface that presents the trace as a navigable tree structure, making it easier to follow nested calls and examine relevant execution frames.
Key features of EVMTraceX include:
- Turn supported execution traces into an interactive interface for developers, auditors and security researchers
- Present execution traces as a navigable tree rather than raw output
- Overview of trace including frame counts, revert counts, storage writes and execution status
- Supported trace inputs: Geth-style callTracer JSON and Foundry textual traces
- Inspect individual frames for call type, target address, gas usage, execution status and other fields
- Keyboard-driven navigation, filtering and focus on reverted frames or frames with storage changes
- Storage changes view to associate modifications with execution frames and show before/after values
- Shows revert and error statuses in the interface to help investigate failed executions
- Local trace files can be inspected without needing to configure a remote endpoint
While EVMTraceX is valuable for examining execution evidence, it's not an automatic vulnerability scanner. The tool does not provide symbolic execution, exploit generation, automatic vulnerability classification, opcode-level analysis or ABI argument decoding. It simply makes the trace data easier to navigate while keeping the tool's limitations in mind.
Developed by Ghost Labs, the source code is available on GitHub and the project is open source under the MIT License. Downloads include prebuilt binaries for various operating systems and CPU architectures. For those who prefer to build from source, the instructions are provided.
To use EVMTraceX, options include downloading a prebuilt binary or building it from source. The project README provides more usage examples and details on input formats. For Foundry trace support, you can capture a Foundry test trace and inspect it with EVMTraceX by running the appropriate command with the trace file.
Overall, EVMTraceX aims to make EVM execution trace data more accessible and easier to analyze, supporting developers, auditors and security researchers in their work with Ethereum smart contracts.
Rewritten by urgent.news; may contain errors — check the original.
Source: dev.to