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

debug_traceBlockByNumber missing field #1217

Closed
0xChupaCabra opened this issue Sep 24, 2024 · 0 comments · Fixed by #1221
Closed

debug_traceBlockByNumber missing field #1217

0xChupaCabra opened this issue Sep 24, 2024 · 0 comments · Fixed by #1221

Comments

@0xChupaCabra
Copy link

txHash is missing from debug_traceBlockBy*

curl -X POST http://my-zkevm-node -H "Content-Type: application/json" --data '{"method":"debug_traceBlockByNumber","params":["0x989680", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}'
{"jsonrpc":"2.0","id":1,"result":[{"result":{"from":"0xcbc34d3321b676d9a4c78a618747b3da095a6d27","gas":"0x4c4b40","gasUsed":"0x2f2b2","to":"0x76f54185815cd1a4423adff558e90394650ca0fc","input":"0xc43ed2c800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000ea034fb02eb1808c2cc3adbc15f447b93cbe08e1","output":"0x0000000000000000000000000000000000000000000000000000000000000001","calls":[{"from":"0x76f54185815cd1a4423adff558e90394650ca0fc","gas":"0x4a814d","gasUsed":"0x48a","to":"0x5a304d43c720911a89eca08c9cd980945dd56755","input":"0x2857373a","output":"0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000100000000000000000000000077966f10aa77fb41ad6499ca4f62173e2d41d0f200000000000000000000000000000000000000000000000000000000000000120000000000000000000000000000000000000000000000000000000000000004","type":"STATICCALL"},{"from":"0x76f54185815cd1a4423adff558e90394650ca0fc","gas":"0x4a6ccb","gasUsed":"0x17c79","to":"0x77966f10aa77fb41ad6499ca4f62173e2d41d0f2","input":"0xc43ed2c800000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000ea034fb02eb1808c2cc3adbc15f447b93cbe08e1","output":"0x0000000000000000000000000000000000000000000000000000000000000001","calls":[{"from":"0x77966f10aa77fb41ad6499ca4f62173e2d41d0f2","gas":"0x48f7ac","gasUsed":"0x960","to":"0x77ce6d0e3adab6e15ba7ce2653fccaacb0ae2aa0","input":"0x3defb962","output":"0x0000000000000000000000000000000000000000000000000000000000003840","type":"STATICCALL"},{"from":"0x77966f10aa77fb41ad6499ca4f62173e2d41d0f2","gas":"0x48eb89","gasUsed":"0xce2","to":"0x77ce6d0e3adab6e15ba7ce2653fccaacb0ae2aa0","input":"0xafbe528200000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000020000000000000000000000000ea034fb02eb1808c2cc3adbc15f447b93cbe08e1","output":"0x00000000000000000000000000000000000000000000000000000000000011f1","type":"STATICCALL"},...

example response from mainnet erigon/geth:

{"jsonrpc":"2.0","id":1,"result":[{"result":{"from":"0xea674fdde714fd979de3edf0f56aa9716b898ec8","gas":"0xc350","gasUsed":"0x5208","to":"0x60f18d941f6253e3f7082ea0db3bc3944e7e9d40","input":"0x","value":"0x554b81ec144eea9","type":"CALL"},"txHash":"0x4a1e3e3a2aa4aa79a777d0ae3e2c3a6de158226134123f6c14334964c6ec70cf"}, ...

it would be nice to add it

erigontech#9016

@V-Staykov V-Staykov linked a pull request Sep 25, 2024 that will close this issue
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 a pull request may close this issue.

1 participant