Skip to content

docs(flashblocks): document simulate_v1 block-envelope fields + error…#2

Merged
soheimam merged 1 commit into
mainfrom
test/simulate-v1-block-envelope-fields
May 13, 2026
Merged

docs(flashblocks): document simulate_v1 block-envelope fields + error…#2
soheimam merged 1 commit into
mainfrom
test/simulate-v1-block-envelope-fields

Conversation

@soheimam
Copy link
Copy Markdown
Owner

… object shape

Expand the simulate_v1 trait doc to describe two response-schema details that are observable to callers but currently undocumented:

  • The hydrated block envelope on each SimulatedBlock entry (number, hash, gasUsed, baseFeePerGas at the block level). The flashblock executor populates these so callers can size cumulative gas budgets and dereference state by hash without an extra RPC round-trip.

  • The error object shape returned inside calls[*].error when a simulated call reverts. Two required fields:

    • message: String — human-readable revert reason
    • code: i64 — numeric revert classification

Plus a note that calls[*].logs includes ETH transfer logs when the caller passes traceTransfers: true, matching the standard eth_simulateV1 contract.

This is a doc-comment-only change. No signatures or behavior touched. Purpose: blind test of the sync-from-base agent vs base/docs#1405 (which surfaced the same fields in the corresponding docs page on the upstream side). Comparing the resulting docs PR against PR base#1405 page-by-page is how we grade the agent's output against a human reference. See scripts/sync-from-base/NOTES.md.

… object shape

Expand the simulate_v1 trait doc to describe two response-schema details
that are observable to callers but currently undocumented:

* The hydrated block envelope on each SimulatedBlock entry (number, hash,
  gasUsed, baseFeePerGas at the block level). The flashblock executor
  populates these so callers can size cumulative gas budgets and
  dereference state by hash without an extra RPC round-trip.

* The error object shape returned inside calls[*].error when a simulated
  call reverts. Two required fields:
    - message: String  — human-readable revert reason
    - code:    i64     — numeric revert classification

Plus a note that calls[*].logs includes ETH transfer logs when the
caller passes traceTransfers: true, matching the standard eth_simulateV1
contract.

This is a doc-comment-only change. No signatures or behavior touched.
Purpose: blind test of the sync-from-base agent vs base/docs#1405
(which surfaced the same fields in the corresponding docs page on the
upstream side). Comparing the resulting docs PR against PR base#1405
page-by-page is how we grade the agent's output against a human
reference. See scripts/sync-from-base/NOTES.md.
@soheimam soheimam marked this pull request as ready for review May 13, 2026 18:27
@soheimam soheimam merged commit e16ba84 into main May 13, 2026
13 of 19 checks passed
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.

1 participant