Closed Johnhersh closed 1 year ago
Can you provide reproduction steps?
I'm so sorry, after trying to reproduce this I realized I made a very stupid typo and actually the problem is probably with the library I'm using to access Ganache. Very sorry for wasting your time :(
No problem. Let us know if we could have errored better here.
So the input I sent to Ganache is this:
{
"jsonrpc":"2.0",
"method":"eth_feeHistory",
"params":[
1,
4,
[1, 99]
]
}
The error it returns is "header not found", which matches the error I got in the library I was using. I talked to the library authors and they said maybe something is wrong with Ganache and I assumed that was the case. However, I changed my input to this:
{
"jsonrpc":"2.0",
"method":"eth_feeHistory",
"params":[
1,
"latest",
[1, 99]
]
}
And it worked fine. So the initial header not found error didn't communicate exactly what was wrong, which is I left the highest block number parameter as a number when it should be "latest". I imagine the library author ran into the same issue, and I'll check with him to see if we can address it there.
I'm running Ganache off of the docker image "trufflesuite/ganache:v7.7.7". Most everything works fine, except when I try and call eth_feeHistory I get this response:
This seems related to EIP-1559. Is there some setting that needs to be turned on for this to work?