Skip to content

Add MaxUsedGas field to eth_simulateV1 response #32741

@levin-p

Description

@levin-p

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
  }

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions