Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cast call at specific transaction state #7916

Open
Yen opened this issue May 13, 2024 · 0 comments
Open

cast call at specific transaction state #7916

Yen opened this issue May 13, 2024 · 0 comments
Labels
C-cast Command: cast T-feature Type: feature

Comments

@Yen
Copy link

Yen commented May 13, 2024

Component

Cast

Describe the feature you would like

Currently we can use --block with cast call to specify the state we want to execute the call at. It would be useful to simulate a call at a specific transaction state within a block. The use case we have is inspecting the exact state of market protocols immediately before transactions occur, where MEV activity causes changes earlier in the block making it more difficult for us to get accurate data.

This functionality already exists somewhat with cast run forking and simulating the transactions up to the point of the target transaction (this is an assumption of the implementation and may be wrong ofc). As eth RPC APIs only allow specifying a block for the state, this might be more an extension to the --trace form of cast call as this implies the use of a local simulation, however I explicitly ask for cast call, as the --trace form does not decode the call result making it less useful for simple calls. It may be the case that this should be an extension to --trace, and decoding the result in --trace should be a separate feature.

Thanks

Additional context

No response

@Yen Yen added the T-feature Type: feature label May 13, 2024
@DaniPopes DaniPopes added the C-cast Command: cast label May 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-cast Command: cast T-feature Type: feature
Projects
None yet
Development

No branches or pull requests

2 participants