Skip to content

eth_feeHistory doesn't support block tags #23327

@spacesailor24

Description

@spacesailor24

System information

Geth version: v1.10.6

Expected behaviour

It is mentioned in the RPC spec that for eth_feeHistory block tags (e.g. earliest, latest, pending) are supported

Actual behaviour

An error is returned when attempting to use any block tag:

{
  "jsonrpc": "2.0",
  "id": 0,
  "error": {
    "code": -32602,
    "message": "invalid argument 0: json: cannot unmarshal string into Go value of type int"
  }
}

And the method implementation seems to be expecting an int

Steps to reproduce the behaviour

curl -X POST --data '{"jsonrpc": "2.0","method": "eth_feeHistory","params": ["0x4","latest",[]],"id": 0}'

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