-
Couldn't load subscription status.
- Fork 21.5k
Open
Labels
Description
The eth_simulateV1 RPC method currently returns gasUsed in the call results, but it would be valuable to also include the maxUsedGas field that's already being tracked internally.
Current Behavior
The simCallResult struct in /internal/ethapi/simulate.go currently returns:
{
"returnData": "0x...",
"logs": [...],
"gasUsed": "0x1234",
"status": "0x1",
"error": null
}Proposed Enhancement
Add a maxUsedGas field to the response:
{
"returnData": "0x...",
"logs": [...],
"gasUsed": "0x1234",
"maxUsedGas": "0x5678",
"status": "0x1",
"error": null
}zodahu