Skip to content
This repository was archived by the owner on Apr 4, 2024. It is now read-only.
This repository was archived by the owner on Apr 4, 2024. It is now read-only.

JSON RPC method eth_feeHistory returns 1 less item in baseFeePerGas #1559

Description

@macong-cdc

System info:

Steps to reproduce:

curl --location --request POST 'https://eth.bd.evmos.org:8545' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "eth_feeHistory",
    "params": [
        4,
        "latest",
        null
    ],
    "id": 0
}'

Expected behavior:
5 items should be in baseFeePerGas in the response as mentioned here.

This includes the next block after the newest of the returned range, because this value can be derived from the newest block.

Actual behavior:
4 items in baseFeePerGas

{"jsonrpc":"2.0","id":0,"result":{"baseFeePerGas":["0x4a817c800","0x4a817c800","0x4a817c800","0x4a817c800"],"gasUsedRatio":[0.016875,0.003654575,0,0.00144495],"oldestBlock":"0x83e77a"}}

Additional info: [Include gist of relevant config, logs, etc.]

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions