-
Notifications
You must be signed in to change notification settings - Fork 21.5k
Closed
Labels
Description
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}'