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 Gnosis Chain (GNO)
connect with WS 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

wscat -c wss://gno.getblock.io/YOUR-API-KEY/mainnet/ 
# wait for connection and send the request body 
{"jsonrpc": "2.0",
"method": "eth_feeHistory",
"params": [61, "latest", [20, 60, 73]],
"id": "getblock.io"}

Response

{
    "id": "getblock.io",
    "jsonrpc": "2.0",
    "result": {
        "baseFeePerGas": [
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7",
            "0x7"
        ],
        "gasUsedRatio": [
            0.0141165,
            0.0023321,
            0.010695366666666666,
            0.005030733333333333,
            0.015694133333333332,
            0.027380537094472752,
            0.0031844029721094405,
            0.023060266666666666,
            0.0256868,
            0.03392526666666667,
            0.056260333333333336,
            0.025708433333333332,
            0.02354729393252511,
            0.06752377029502643,
            0.015994448261485043,
            0.017430082934744073,
            0.010754666666666666,
            0.033157566666666666,
            0.0107094,
            0.027377801089430494,
            0.0007013691192787735,
            0.029255095881053867,
            0.004956476083971226,
            0.02725985179371841,
            0.0171327,
            0.011264966666666666,
            0.0007,
            0.042035366666666664,
            0.022929466666666665,
            0.0474624,
            0.0253157,
            0.004199066666666667,
            0.03305386666666667,
            0.018027,
            0.017104033333333334,
            0.04210376666666667,
            0.011029,
            0.040024166666666666,
            0.013013166666666666,
            0.024021466666666668,
            0.013958933333333333,
            0.018005266666666665,
            0.012150866666666666,
            0.0231534,
            0.0341824,
            0.0216303,
            0.010984733333333333,
            0.007635433333333334,
            0.018351866666666668,
            0.0007,
            0.016793166666666668,
            0.026439133333333333,
            0.0078787,
            0.005794133333333333,
            0.0150808,
            0.011474633333333333,
            0.011800266666666667,
            0.0411309,
            0.0179561,
            0.015372333333333333,
            0.020048533333333333
        ],
        "oldestBlock": "0x1ae7fa7",
        "reward": [
            [
                "0x933fd84e",
                "0xa67dc90b",
                "0xa67dc90b"
            ],
            [
                "0x8abe2788",
                "0x933fd84e",
                "0x933fd84e"
            ],
            [
                "0xa67dc90b",
                "0xa67dc90b",
                "0xa67dc90b"
            ],
            [
                "0xa67dc90b",
                "0xa67dc90b",
                "0xa67dc90b"
            ],
            [
                "0xa67dc90b",
                "0xb2d05df9",
                "0xb2d05df9"
            ],
            [
                "0x3b9aca00",
                "0xa67dc90b",
                "0xa67dc90b"
            ],
            [
                "0x8ed4f837",
                "0x8eeecd7d",
                "0x8eeecd7d"
            ],
            [
                "0x8abe2788",
                "0xab84f697",
                "0xab84f697"
            ],
            [
                "0x8eeecd7d",
                "0x9d39e20a",
                "0xa67dc90b"
            ],
            [
                "0xa17f21bb",
                "0xa17f21bb",
                "0xa17f21bb"
            ],
            [
                "0xa17f21bb",
                "0xa17f21bb",
                "0xa17f21bb"
            ],
            [
                "0x8a8c053f",
                "0xa1a5d5f9",
                "0xa1a5d5f9"
            ],
            [
                "0x8a8c053f",
                "0x8eeecd7d",
                "0x8eeecd7d"
            ],
            [
                "0x8eeecd7d",
                "0x8eeecd7d",
                "0xb0b30392"
            ],
            [
                "0x8a8c053f",
                "0x8a8c053f",
                "0xb0b30392"
            ],
            [
                "0x865b5ac2",
                "0xb0b30392",
                "0xb0b30392"
            ],
            [
                "0x8a8c0b56",
                "0x8a8c0b56",
                "0xb0b30392"
            ],
            [
                "0x9b726a93",
                "0xc1cbc215",
                "0xc1cbc215"
            ],
            [
                "0x8663fad9",
                "0x8663fad9",
                "0x8663fad9"
            ],
            [
                "0x8663fad9",
                "0xc1cbc215",
                "0xc1cbc215"
            ],
            [
                "0xa17f21bb",
                "0xa17f21bb",
                "0xa17f21bb"
            ],
            [
                "0x866400c1",
                "0xc1cbc215",
                "0xc1cbc215"
            ],
            [
                "0xd666343b",
                "0xd666343b",
                "0xd666343b"
            ],
            [
                "0x866400c1",
                "0xc1cbc215",
                "0xc1cbc215"
            ],
            [
                "0x825be202",
                "0x825be202",
                "0x825be202"
            ],
            [
                "0xc1cbc215",
                "0xc1cbc215",
                "0xc1cbc215"
            ],
            [
                "0xb2d05df9",
                "0xb2d05df9",
                "0xb2d05df9"
            ],
            [
                "0x825be202",
                "0x825be202",
                "0xa17f21bb"
            ],
            [
                "0x825be202",
                "0xba894cb1",
                "0xc1cbc215"
            ],
            [
                "0x825be202",
                "0x8abe2788",
                "0x8abe2788"
            ],
            [
                "0xa517f05c",
                "0xa517f05c",
                "0xb2d05df9"
            ],
            [
                "0x12a05f1f9",
                "0x12a05f1f9",
                "0x12a05f1f9"
            ],
            [
                "0x7e72b9f2",
                "0xb2d05df9",
                "0xc1cbc215"
            ],
            [
                "0x7e72b9f2",
                "0xb2d05df9",
                "0xb2d05df9"
            ],
            [
                "0x7e72b9f2",
                "0xc1cbc215",
                "0xc1cbc215"
            ],
            [
                "0x7e72b9f2",
                "0xa6b0932e",
                "0xa6b0932e"
            ],
            [
                "0x7aa79ac4",
                "0x7aa79ac4",
                "0x7aa79ac4"
            ],
            [
                "0x7aa79ac4",
                "0x933fd84e",
                "0x933fd84e"
            ],
            [
                "0x7aa79ac4",
                "0x7aa79ac4",
                "0x7aa79ac4"
            ],
            [
                "0x7aa79ac4",
                "0x7aa79ac4",
                "0x7aa79ac4"
            ],
            [
                "0x7aa79ac4",
                "0x7aa79ac4",
                "0xa17f21bb"
            ],
            [
                "0x8eeecd7d",
                "0x9d355bd8",
                "0xc1cbc215"
            ],
            [
                "0x76f99dcd",
                "0x76f99dcd",
                "0x76f99dcd"
            ],
            [
                "0x76f99dcd",
                "0xa17f21bb",
                "0xa17f21bb"
            ],
            [
                "0x76f99dcd",
                "0xa17f21bb",
                "0xa17f21bb"
            ],
            [
                "0x76f99dcd",
                "0xb2d05e00",
                "0xb2d05e00"
            ],
            [
                "0x8eeecd7d",
                "0x8eeecd7d",
                "0x8eeecd7d"
            ],
            [
                "0xbca66e37",
                "0xbca66e37",
                "0xbca66e37"
            ],
            [
                "0x76f99dcd",
                "0xa6b0932e",
                "0xa6b0932e"
            ],
            [
                "0xb2d05df9",
                "0xb2d05df9",
                "0xb2d05df9"
            ],
            [
                "0xc1cbc215",
                "0x12a05f1f9",
                "0x12a05f1f9"
            ],
            [
                "0x7367e34e",
                "0x773593f9",
                "0x773593f9"
            ],
            [
                "0x7367e34e",
                "0xa1f4c4c3",
                "0xa1f4c4c3"
            ],
            [
                "0xa17f21bb",
                "0xa17f21bb",
                "0xa17f21bb"
            ],
            [
                "0xad731379",
                "0xad731379",
                "0xb2d05df9"
            ],
            [
                "0x9ca6d67a",
                "0xc1cbc215",
                "0xc1cbc215"
            ],
            [
                "0x9ca6d67a",
                "0xc1cbc215",
                "0xc1cbc215"
            ],
            [
                "0x9ca6d67a",
                "0xa17f21bb",
                "0xa6a792f9"
            ],
            [
                "0xa64c0579",
                "0xc1cbc215",
                "0xc1cbc215"
            ],
            [
                "0x97f3c0ae",
                "0x97f3c0ae",
                "0xeafa41b7"
            ],
            [
                "0xc1cbc215",
                "0xebd009c4",
                "0xebd009c4"
            ]
        ]
    }
}
banner icon

Start Building with GetBlock RPCs for Free