Skip to content

feat(tracing): support EIP-8037 trace fields - #475

Open
decofe wants to merge 1 commit into
mainfrom
centaur/eip8037-tracing-support-1785846773
Open

feat(tracing): support EIP-8037 trace fields#475
decofe wants to merge 1 commit into
mainfrom
centaur/eip8037-tracing-support-1785846773

Conversation

@decofe

@decofe decofe commented Aug 4, 2026

Copy link
Copy Markdown
Member

Implements the EIP-8037 tracing additions from ethereum/execution-apis#852, using Alloy #4113 as a temporary dependency patch.

Changes:

  • expose regular/state gas accounting on default and call traces;
  • emit per-opcode stateGasCost and stateGasReservoir values;
  • support the stateGasTracer built-in tracer;
  • add an integration test for the new tracer.

The Alloy patch is intentionally pinned by commit and can be removed once #4113 is merged. The additive RPC fields preserve backwards-compatible decoding for existing callers.

Tests: cargo test
Clippy: cargo +nightly clippy --all-targets --all-features -- -D warnings

Prompted by: @mattsse

onbjerg added a commit that referenced this pull request Aug 12, 2026
Replaces #475.

Implements the EIP-8037 tracing additions from
ethereum/execution-apis#852: two-dimensional gas fields on default and
call traces, signed per-opcode state-gas accounting, `stateGasTracer`,
and mux tracer support. Fork gating uses the actual execution spec,
including Amsterdam transactions with zero net state gas and empty-code
calls, while pre-Amsterdam responses and legacy builder behavior remain
unchanged.

Upstream support landed in alloy-rs/alloy#4113 and is now consumed from
the released `alloy-rpc-types-trace` crate.

Prompted by: @onbjerg

---------

Co-authored-by: Derek Cofausper <256792747+decofe@users.noreply.github.com>
Co-authored-by: onbjerg <8862627+onbjerg@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants