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://cro.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": [
            "0x44f1786b0c2",
            "0x44f1785fc93",
            "0x44f1785459c",
            "0x44f1784904a",
            "0x44f1783d832",
            "0x44f17831fee",
            "0x44f17826bc1",
            "0x44f1781b2b0",
            "0x44f1780fe98",
            "0x44f178046d6",
            "0x44f177f8efe",
            "0x44f177ed78c",
            "0x44f177e1fc0",
            "0x44f177d66af",
            "0x44f177cadd0",
            "0x44f177bf699",
            "0x44f177b461e",
            "0x44f177a8d0d",
            "0x44f1779d71c",
            "0x44f177920dd",
            "0x44f177867cc",
            "0x44f1777b259",
            "0x44f1776f948",
            "0x44f17764758",
            "0x44f1775921f",
            "0x44f1774da12",
            "0x44f1774281e",
            "0x44f17737c89",
            "0x44f1772c3e8",
            "0x44f17721602",
            "0x44f17715cf1",
            "0x44f1770a982",
            "0x44f176ff27d",
            "0x44f176f3b52",
            "0x44f176e82eb",
            "0x44f176dca69",
            "0x44f176d17be",
            "0x44f176c6230",
            "0x44f176bb060",
            "0x44f176afcc7",
            "0x44f176a45e2",
            "0x44f17698cd1",
            "0x44f1768dbd7",
            "0x44f176823b3",
            "0x44f17676cfa",
            "0x44f1766b457",
            "0x44f176601ae",
            "0x44f17654e27",
            "0x44f17649975",
            "0x44f1763e3bf",
            "0x44f17632aae",
            "0x44f1762745a",
            "0x44f1761be30",
            "0x44f176106e6",
            "0x44f17604ee0",
            "0x44f175f9902",
            "0x44f175edff1",
            "0x44f175e26e0",
            "0x44f175d70de",
            "0x44f175cba02",
            "0x44f175c1236"
        ],
        "gasUsedRatio": [
            0.013195775,
            0.005675525,
            0.0101194,
            0.002626,
            0.002160175,
            0.01321395,
            0,
            0.0134329,
            0.003538925,
            0.003302775,
            0.004375,
            0.0034306,
            0,
            0.000525,
            0.005,
            0.023195175,
            0,
            0.00844495,
            0.007617825,
            0,
            0.00976755,
            0,
            0.0192613,
            0.01038495,
            0.002742,
            0.019221425,
            0.036425375,
            0.001183175,
            0.030173675,
            0,
            0.015214925,
            0.005525,
            0.00512445,
            0.00179335,
            0.0015111,
            0.017281825,
            0.009489425,
            0.019598025,
            0.0147697,
            0.005867475,
            0,
            0.02185265,
            0.0025,
            0.0063324,
            0.001163075,
            0.017301675,
            0.0149599,
            0.011809975,
            0.009061475,
            0,
            0.007401775,
            0.00784,
            0.0048057,
            0.0028122,
            0.0086444,
            0,
            0,
            0.00825925,
            0.00596215,
            0.04665895,
            0.0193983
        ],
        "oldestBlock": "0x82d593",
        "reward": [
            [
                "0x218e2",
                "0x218e2",
                "0x2c4d3"
            ],
            [
                "0x37902",
                "0x3d0fb3536d",
                "0x3d0fb3536d"
            ],
            [
                "0x2d2cf",
                "0x3d0fb40a64",
                "0x3d0fb40a64"
            ],
            [
                "0x2255a",
                "0x2255a",
                "0x2255a"
            ],
            [
                "0x59682f00",
                "0x59682f00",
                "0x59682f00"
            ],
            [
                "0xe7ec86012",
                "0x3d0fb63012",
                "0x3d0fb63012"
            ],
            [
                "0x0",
                "0x0",
                "0x0"
            ],
            [
                "0x2de93",
                "0x2de93",
                "0x2de93"
            ],
            [
                "0x392ab",
                "0x392ab",
                "0x392ab"
            ],
            [
                "0x2ddfc",
                "0x2ddfc",
                "0x2ddfc"
            ],
            [
                "0x3d0fb9c102",
                "0x3d0fb9c102",
                "0x3d0fb9c102"
            ],
            [
                "0xe7ecca874",
                "0xe7ecca874",
                "0xe7ecca874"
            ],
            [
                "0x0",
                "0x0",
                "0x0"
            ],
            [
                "0x39ae1",
                "0x39ae1",
                "0x39ae1"
            ],
            [
                "0x3d0fbca230",
                "0x3d0fbca230",
                "0x3d0fbca230"
            ],
            [
                "0x228af",
                "0x3d0fbd5967",
                "0x6ba0ab2967"
            ],
            [
                "0x0",
                "0x0",
                "0x0"
            ],
            [
                "0x2230b",
                "0x3923b",
                "0x3923b"
            ],
            [
                "0x2d8fc",
                "0x2d8fc",
                "0x4482c"
            ],
            [
                "0x0",
                "0x0",
                "0x0"
            ],
            [
                "0x22861",
                "0x3d0fc0e834",
                "0x3d0fc0e834"
            ],
            [
                "0x0",
                "0x0",
                "0x0"
            ],
            [
                "0x22795",
                "0x59682f00",
                "0x59682f00"
            ],
            [
                "0x2d985",
                "0x3d0fc308a8",
                "0x3d0fc308a8"
            ],
            [
                "0x37271c0e19",
                "0x37271c0e19",
                "0x37271c0e19"
            ],
            [
                "0x2d847",
                "0x2d847",
                "0x2d847"
            ],
            [
                "0x22312",
                "0x3b9aca00",
                "0x3b9aca00"
            ],
            [
                "0x3d0fc5d377",
                "0x3d0fc5d377",
                "0x3d0fc5d377"
            ],
            [
                "0x59682f00",
                "0x59682f00",
                "0x59682f00"
            ],
            [
                "0x0",
                "0x0",
                "0x0"
            ],
            [
                "0x2d8a9",
                "0x2d8a9",
                "0x2d8a9"
            ],
            [
                "0x3d0fc8a67e",
                "0x3d0fc8a67e",
                "0x3d0fc8a67e"
            ],
            [
                "0x2dc96",
                "0x2dc96",
                "0x2dc96"
            ],
            [
                "0x22741",
                "0x59682f00",
                "0x59682f00"
            ],
            [
                "0x59682f00",
                "0x59682f00",
                "0x59682f00"
            ],
            [
                "0x372796ccb3",
                "0x372796ccb3",
                "0x372796ccb3"
            ],
            [
                "0x44ad5",
                "0x502ede2e5d",
                "0x502ede2e5d"
            ],
            [
                "0x3d0fccedd0",
                "0x4ff30491c7",
                "0x4ff30491c7"
            ],
            [
                "0x59682f00",
                "0x9502f900",
                "0x3d0fcd9fa0"
            ],
            [
                "0x2d408",
                "0x2d408",
                "0x2d408"
            ],
            [
                "0x0",
                "0x0",
                "0x0"
            ],
            [
                "0x2dca0",
                "0x443fe",
                "0x443fe"
            ],
            [
                "0x3d0fd07429",
                "0x3d0fd07429",
                "0x3d0fd07429"
            ],
            [
                "0x2db40",
                "0x157e6dac70",
                "0x157e6dac70"
            ],
            [
                "0x2d8e8",
                "0x2d8e8",
                "0x2d8e8"
            ],
            [
                "0x2286d",
                "0x3918b",
                "0x3d0fd29ba9"
            ],
            [
                "0x2db16",
                "0x59682f00",
                "0x59682f00"
            ],
            [
                "0x21f41",
                "0x21f41",
                "0x21f41"
            ],
            [
                "0x2214a",
                "0x2d3f3",
                "0x2d3f3"
            ],
            [
                "0x0",
                "0x0",
                "0x0"
            ],
            [
                "0x3d0fd62552",
                "0xb17a28ad52",
                "0xb17a28ad52"
            ],
            [
                "0xfabe7bac0",
                "0xfabe7bac0",
                "0xfabe7bac0"
            ],
            [
                "0x59682f00",
                "0x3d0fd791d0",
                "0x3d0fd791d0"
            ],
            [
                "0x3d0fd8491a",
                "0x3d0fd8491a",
                "0x3d0fd8491a"
            ],
            [
                "0x59682f00",
                "0x3d0fd90120",
                "0x3d0fd90120"
            ],
            [
                "0x0",
                "0x0",
                "0x0"
            ],
            [
                "0x0",
                "0x0",
                "0x0"
            ],
            [
                "0x2e111",
                "0x2e111",
                "0x2e111"
            ],
            [
                "0x22824",
                "0x22824",
                "0x22824"
            ],
            [
                "0x2df00",
                "0x59682f00",
                "0x59682f00"
            ],
            [
                "0x2cdbb",
                "0x2cdbb",
                "0x2cdbb"
            ]
        ]
    }
}
banner icon

Start Building with GetBlock RPCs for Free