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

trace a pending transaction based on calldata #22317

Closed
Code0x2 opened this issue Feb 11, 2021 · 4 comments
Closed

trace a pending transaction based on calldata #22317

Code0x2 opened this issue Feb 11, 2021 · 4 comments

Comments

@Code0x2
Copy link

Code0x2 commented Feb 11, 2021

Is there a feature for the JSON-RPC similar to debug_traceTransaction, which can be used for pending transactions given the call destination and the calldata?

@rjl493456442
Copy link
Member

I think you can try debug_traceCall API which can you specify arbitrary call message based on the requested base state.
Also #22245 with this additional PR, you can even override/customize the base state.

@Code0x2
Copy link
Author

Code0x2 commented Feb 17, 2021

I think you can try debug_traceCall API which can you specify arbitrary call message based on the requested base state.
Also #22245 with this additional PR, you can even override/customize the base state.

Not too sure how that would be used from json-rpc but looks cool. Ill give traceCall a try and see if it works.

@MariusVanDerWijden
Copy link
Member

I think debug_traceCall provides the necessary functionality. Will close this issue for now, please reopen if something is missing

@huahuayu
Copy link
Contributor

@rjl493456442 do I need an archive node for debug_traceCall?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants