Skip to content

feat(anvil): add eth_call block overrides (like geth) #10458

Open
@cruzdanilo

Description

@cruzdanilo

Component

Anvil

Describe the feature you would like

add support for block context overrides in eth_call.

this would allow specifying parameters like block.timestamp, block.number, etc., for an eth_call's execution context, not just state overrides.

Additional context

geth implemented this in its v1.12.0 release (may 25, 2023), via an optional fourth argument to eth_call. (see "add block overrides to eth_call (#26414)" in the geth v1.12.0 release notes).

geth eth_call documentation: https://geth.ethereum.org/docs/interacting-with-geth/rpc/ns-eth#eth-call

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions