-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
feature request: rpc method for per opcode gas tracing #6421
Comments
I think this should be possible via a custom tracer similar to Geth's tracers, or should this be in a separate trace method @mattsse ? |
I believe the only way to do this rn is via JS but it's possible to add this |
This issue is stale because it has been open for 21 days with no activity. |
we can add this as |
[edited for future-proofness, turned opcodes into list not map] possible schema for output
request: response: {
"transactionHash": "0xb5be..."
"opcodes": [
{"opcode": "SSTORE", "count": 4, "gas_used": 38000},
{"opcode": "CREATE", "count": 1, "gas_used": 32000},
...
],
}
request: response: {
"blockHash": "0x9eaf...",
"transactions": [trace_transactionOpcodeGasResponse],
} |
Describe the feature
It would be very nice to have an rpc method ("
opcode_trace
") that gives a per-transaction accounting of:This would be the final missing piece for full resolution gas analysis.
Data could have a similar schema to state_diffs tracing:
Additional context
No response
The text was updated successfully, but these errors were encountered: