Skip to content

debug_traceBlockByNumber error with "latest" parameter #31

@Mummyhap

Description

@Mummyhap

The request consistently returns the error 'block #-1 not found.' I believe this is due to a parsing error of the 'latest' parameter in this method.
request:

{
    "method": "debug_traceBlockByNumber",
    "params": [
        "latest",
        {
            "tracer": "callTracer"
        }
    ],
    "id": 1,
    "jsonrpc": "2.0"
}

response:

{
    "jsonrpc": "2.0",
    "id": 1,
    "error": {
        "code": -32000,
        "message": "block #-1 not found"
    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions