New Here? Claim Your 30% Discount on Your First Blockchain Node Access!

banner image

Last updated on January 1, 1970

41 min read

Method eth_feeHistory undefined ()
connect with JSON-RPC protocol

eth_feeHistory

info-circle-fill

Returns a list of historical gas information.

Parameters

DATA, 8 Bytes - None

Number of blocks in the requested range.

DATA, 32 Bytes - None

Number of newest block in the requested range.

DATA, 32 Bytes - None

Optional monotonically increasing list of percentile values to sample from each block's effective priority fees per gas in ascending order, weighted by gas used.

Request

curl --location --request POST 'https://ftm.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "eth_feeHistory",
"params": [61, "latest", [20, 60, 73]],
"id": "getblock.io"}'

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "baseFeePerGas": [
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c",
            "0x36ecc9e9c"
        ],
        "gasUsedRatio": [
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99,
            0.99
        ],
        "oldestBlock": "0x3c6a22b",
        "reward": [
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ],
            [
                "0x10e676a5f64",
                "0x1112b84c964",
                "0x1112b84c964"
            ]
        ]
    }
}
banner icon

Start Building with GetBlock RPCs for Free