Skip to content

Possibility to perform transactions replay intra-block when using CallContract  #30598

Open
@0xgiantkoala

Description

@0xgiantkoala

Currently, gethclient.CallContract supports blockNumber override.

However, there are cases where I am interested in reading/simulating stuff intra block. (ie: top of block T and then replay first N transactions from block T + 1).

Basically, I need Foundry's createSelectFork("rpc", "txHash") in GETH.

Is there an official and idiomatic way that allows me to do this (without needing to fork go-ethereum and implement the replay stuff myself) ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions