Skip to content

Conversation

@m4sterbunny
Copy link
Contributor

Description

Documents debug_traceCall State Overrides Support

Similar to eth_call - both methods use the same underlying mechanism to pass state overrides to the transaction simulator, allowing temporary state changes for testing and debugging without affecting the actual blockchain state.

Based on json in original pr, stateOverrides is nested inside the options object
Added debug_traceCall to the list of methods that accept state override objects

Issue(s) fixed

Fixes #1874

Preview

Signed-off-by: m4sterbunny <harrie.bickle-ext@consensys.net>
@m4sterbunny m4sterbunny requested a review from a team as a code owner December 11, 2025 16:16
@vercel
Copy link

vercel bot commented Dec 11, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
besu-docs Ready Ready Preview, Comment Dec 18, 2025 8:27am

Copy link
Contributor

@macfarla macfarla left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change looks fine.

When I searched the docs for "override", this is the first result: https://besu-docs-git-1722-consistent-syntax-clean-hyperledger.vercel.app/public-networks/how-to/send-transactions#override-state-values

so maybe that page should also have a link to the State Overrides object (and maybe mention the other RPCs, at least ethSimulateV1). Could be a separate PR.

Signed-off-by: m4sterbunny <harrie.bickle-ext@consensys.net>
@macfarla
Copy link
Contributor

Signed-off-by: m4sterbunny <harrie.bickle-ext@consensys.net>
Copy link
Contributor

@bgravenorst bgravenorst left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

| Returns the value of a contract function available immediately | Returns transaction hash only. A block might not include all possible transactions (for example, if the gas price is too low). |

## Override state values
## Override state values
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Override state values
## Override state values

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.

You can now do state overrides for debug_traceCall

4 participants