Share your GetBlock experience with other devs and get 5M RPCs

banner image
eth

Ethereum

ETH

POST

GET

chevron-right

Last updated on January 1, 1970

41 min read

Method eth_feeHistory Ethereum (ETH)
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://eth.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": [
            "0x64191db63",
            "0x709685587",
            "0x6c169393c",
            "0x6d228f023",
            "0x69e57e868",
            "0x6ae015bd1",
            "0x651b3fa6b",
            "0x6831e8093",
            "0x65c70bff7",
            "0x67c9ff405",
            "0x66d7d288f",
            "0x70fafc733",
            "0x6bfec49ec",
            "0x6932b87df",
            "0x65da2e0df",
            "0x6a9424f72",
            "0x69449edec",
            "0x683577d2a",
            "0x67587811e",
            "0x693226b22",
            "0x6686550d0",
            "0x68b97c148",
            "0x64fff8ae2",
            "0x690ddc64a",
            "0x63e06ce99",
            "0x6979fadd1",
            "0x689a98540",
            "0x666101098",
            "0x65b8f80d5",
            "0x62192b78b",
            "0x68307b866",
            "0x682bab454",
            "0x6bc7f0cec",
            "0x6d912c34d",
            "0x711120783",
            "0x6f6916161",
            "0x6a7b05462",
            "0x69665724e",
            "0x6ae312e5f",
            "0x657145a44",
            "0x686be91af",
            "0x682f0c770",
            "0x620f2862a",
            "0x606b0271f",
            "0x6c76f80c7",
            "0x76745549d",
            "0x7f398c5d6",
            "0x79a384754",
            "0x76430c0b1",
            "0x73d36ba18",
            "0x7169ac61b",
            "0x70ed5be22",
            "0x6ec40d173",
            "0x6dfc66166",
            "0x6bd41998f",
            "0x6a599fe24",
            "0x689735920",
            "0x68633273a",
            "0x67f41fe31",
            "0x652f5e392",
            "0x684a55021",
            "0x6a4d9c697"
        ],
        "gasUsedRatio": [
            0.9991048333333333,
            0.3401327333333333,
            0.5387389333333333,
            0.38130176666666665,
            0.5369746,
            0.28408893333333335,
            0.6221883333333333,
            0.40719626666666664,
            0.5790557333333334,
            0.4635416333333333,
            0.8942846,
            0.3235012,
            0.3964005666666667,
            0.37277863333333333,
            0.6856188,
            0.4508104333333333,
            0.45975266666666664,
            0.4668635666666667,
            0.5716168333333334,
            0.39843073333333334,
            0.5858257,
            0.35773493333333334,
            0.6605647666666666,
            0.30286423333333334,
            0.7242695,
            0.4669083666666667,
            0.41491846666666665,
            0.4743546,
            0.35748623333333335,
            0.7483657333333333,
            0.4992781333333333,
            0.6386355333333333,
            0.5662848666666667,
            0.6277690666666667,
            0.44140076666666667,
            0.32299893333333335,
            0.45939983333333334,
            0.5564418666666666,
            0.2962507,
            0.6174678333333333,
            0.490893,
            0.264855,
            0.4330525333333333,
            0.9997704,
            0.8684038,
            0.7961602,
            0.3243720333333333,
            0.3889552,
            0.4176052,
            0.41666543333333333,
            0.4828730666666667,
            0.4234424,
            0.4718363666666667,
            0.42153843333333335,
            0.44515663333333333,
            0.4338248,
            0.4922298,
            0.48337436666666667,
            0.3934686333333333,
            0.6227584,
            0.5772001666666666
        ],
        "oldestBlock": "0x1092353",
        "reward": [
            [
                "0x5f5e100",
                "0x5f5e100",
                "0x5f5e100"
            ],
            [
                "0x5f5e100",
                "0x11e1a300",
                "0x59682f00"
            ],
            [
                "0x5f5e100",
                "0xa21fe80",
                "0x59682f00"
            ],
            [
                "0x5f5e100",
                "0x59682f00",
                "0x77359400"
            ],
            [
                "0x5f5e100",
                "0x3aeb1323",
                "0x77359400"
            ],
            [
                "0x5f5e100",
                "0x1ad27480",
                "0x59682f00"
            ],
            [
                "0x59a5380",
                "0x1ad27480",
                "0x67488683"
            ],
            [
                "0x5f5e100",
                "0x3b9aca00",
                "0x77359400"
            ],
            [
                "0x5f5e100",
                "0x59682f00",
                "0x77359400"
            ],
            [
                "0x5f5e100",
                "0x2aa66cbf",
                "0x2cb4bbd5"
            ],
            [
                "0x5f5e100",
                "0x11e1a300",
                "0x11e1a300"
            ],
            [
                "0x5f5e100",
                "0x59682f00",
                "0xb2d05e00"
            ],
            [
                "0x5f5e100",
                "0x5f5e100",
                "0x3c376214"
            ],
            [
                "0x5f5e100",
                "0x3b9aca00",
                "0x9502f900"
            ],
            [
                "0x593ce64",
                "0x5f5e100",
                "0x3b7e8800"
            ],
            [
                "0x5f5e100",
                "0x3b9aca00",
                "0x50c5551d"
            ],
            [
                "0x5f5e100",
                "0x3b9aca00",
                "0x77359400"
            ],
            [
                "0x5f5e100",
                "0x59682f00",
                "0x939ea356"
            ],
            [
                "0x5f5e100",
                "0x3b9aca00",
                "0x4b0160e2"
            ],
            [
                "0x5f5e100",
                "0x1dcd6500",
                "0x59682f00"
            ],
            [
                "0x5f5e100",
                "0x20e80d5e",
                "0x5d7cda1c"
            ],
            [
                "0x5f5e100",
                "0x4cc35254",
                "0x77359400"
            ],
            [
                "0x5f5e100",
                "0x2587f63c",
                "0x3b9aca00"
            ],
            [
                "0x5f5e100",
                "0x5f5e100",
                "0x2fab1bb6"
            ],
            [
                "0x5f5e100",
                "0x11e1a300",
                "0x59682f00"
            ],
            [
                "0x5f5e100",
                "0x3b9aca00",
                "0x77359400"
            ],
            [
                "0x5f5e100",
                "0x3b9aca00",
                "0x77359400"
            ],
            [
                "0x5f5e100",
                "0x46555f00",
                "0x77359400"
            ],
            [
                "0x5f5e100",
                "0x3b9aca00",
                "0x77359400"
            ],
            [
                "0x5f5e100",
                "0x11e1a300",
                "0x1dcd6500"
            ],
            [
                "0x5f5e100",
                "0x59682f00",
                "0x9502f900"
            ],
            [
                "0x5f5e100",
                "0x3b9aca00",
                "0x3b9aca00"
            ],
            [
                "0x5f5e100",
                "0x11e1a300",
                "0x77359400"
            ],
            [
                "0x5f5e100",
                "0x59682f00",
                "0x12a05f200"
            ],
            [
                "0x5f5e100",
                "0x3d81299a",
                "0x9502f900"
            ],
            [
                "0x5f5e100",
                "0x3b9aca00",
                "0x6247387d"
            ],
            [
                "0x5f5e100",
                "0x6ca56b73",
                "0xb2d05e00"
            ],
            [
                "0x5f5e100",
                "0x7270e00",
                "0x59682f00"
            ],
            [
                "0x5f5e100",
                "0x68c4f221",
                "0x9502f900"
            ],
            [
                "0x5f5e100",
                "0x1dcd6500",
                "0x2dd9bdbc"
            ],
            [
                "0x5f5e100",
                "0x3b9aca00",
                "0x77359400"
            ],
            [
                "0x5f5e100",
                "0x14dc9380",
                "0x59682f00"
            ],
            [
                "0x5f5e100",
                "0x77359400",
                "0x77359400"
            ],
            [
                "0x7085ce1",
                "0x1ae2906c",
                "0x21f98280"
            ],
            [
                "0x5f5e100",
                "0x5f5e100",
                "0x5f5e100"
            ],
            [
                "0x5f5e100",
                "0x59682f00",
                "0x36c585c63"
            ],
            [
                "0x5f5e100",
                "0x3b9aca00",
                "0x59682f00"
            ],
            [
                "0x5f5e100",
                "0x59682f00",
                "0x77359400"
            ],
            [
                "0x5f5e100",
                "0x11e1a300",
                "0x3b9aca00"
            ],
            [
                "0x5f5e100",
                "0x5f5e100",
                "0x1dcd6500"
            ],
            [
                "0x5f5e100",
                "0x77359400",
                "0xb2d05e00"
            ],
            [
                "0x5f5e100",
                "0x5f5e100",
                "0x11e1a300"
            ],
            [
                "0x5f5e100",
                "0x3e138537",
                "0xa027358a"
            ],
            [
                "0x5f5e100",
                "0x1c5d4a9a",
                "0x77359400"
            ],
            [
                "0x5f5e100",
                "0x14f19754",
                "0x5f4f0d8c"
            ],
            [
                "0x5f5e100",
                "0x59682f00",
                "0xaff1dcdc"
            ],
            [
                "0x5f5e100",
                "0xc751640",
                "0x3b9aca00"
            ],
            [
                "0x5f5e100",
                "0x3b9aca00",
                "0x5d2e8901"
            ],
            [
                "0x5f5e100",
                "0x11e1a300",
                "0x59682f00"
            ],
            [
                "0x5f5e100",
                "0x333d43a8",
                "0x333d43a8"
            ],
            [
                "0x5f5e100",
                "0x3b9aca00",
                "0x77359400"
            ]
        ]
    }
}
banner icon

Start Building with GetBlock RPCs for Free