Skip to content

eth: add example for eth_simulateV1 - #863

Open
O1ahmad wants to merge 1 commit into
ethereum:mainfrom
O1ahmad:add/eth-simulatev1-example
Open

eth: add example for eth_simulateV1#863
O1ahmad wants to merge 1 commit into
ethereum:mainfrom
O1ahmad:add/eth-simulatev1-example

Conversation

@O1ahmad

@O1ahmad O1ahmad commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Closes #696

Problem

eth_simulateV1 had no usage example in the OpenRPC spec, making the method more challenging to use as a reference.

Changes

Adds a minimal request/response example to eth_simulateV1 in src/eth/execute.yaml, mirroring the validated ethSimulate-simple fixture (a two-call transfer with a state override).

Verification

  • make build / make test (speccheck) pass
  • make lint: no new warnings

Add a minimal request/response example mirroring the validated
ethSimulate-simple fixture so the method documentation shows a concrete
call.

@MysticRyuujin MysticRyuujin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The result object does not conform to the openrpc.json spec for the response object.

I know that you're going for a "minimal" example of the result, but the actual result should be the full result object as returned by the API.

I would recommend that you just copy the full output of the ethSimulate-simple.io fixture into the result. Then we can merge this.

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 this pull request may close these issues.

Add example for eth_simulateV1

2 participants