foundry-rs/foundry

Support for debug_traceBlockByNumber in Anvil

Closed this issue · 1 comments

Component

Anvil

Describe the feature you would like

Support the rpc call for debug_traceBlockByNumber and debug_traceBlockByHash in Anvil.

Request:

{
    "id": 4,
    "jsonrpc": "2.0",
    "method": "debug_traceBlockByNumber",
    "params": [
        "0x11b521d",
        {
            "tracer": "prestateTracer",
            "tracerConfig": {
                "diffMode": true,
                "disableCode": false,
                "disableStorage": false
            }
        }
    ]
}

Response currently:

{
    "error": {
        "code": -32601,
        "message": "Method not found"
    },
    "id": 4,
    "jsonrpc": "2.0"
}

Additional context

No response

prestateTracer is not supported yet but will be added as part of #5855