ETH
POST
GET
Last updated on January 1, 1970
41 min read
Method eth_feeHistory undefined ()
connect with WS protocol
eth_feeHistory
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://eth.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": [
"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",
"0x6582284aa",
"0x6347b7912",
"0x6ed9f0014",
"0x6c0b098ee",
"0x67038f61e",
"0x67dd5bebb",
"0x60f33c7e3",
"0x6d09236d6",
"0x6cae7bf3f",
"0x71ee8a94f",
"0x6d90aa938",
"0x6ba07e7a6",
"0x67aed593f"
],
"gasUsedRatio": [
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,
0.3195824,
0.4121932,
0.9662029333333333,
0.39866773333333333,
0.31380736666666664,
0.5330354333333334,
0.2337096,
0.9986297,
0.4870091,
0.6932332333333333,
0.34669076666666665,
0.42924123333333336,
0.3534202
],
"oldestBlock": "0x1092360",
"reward": [
[
"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"
],
[
"0x5f5e100",
"0x14dc9380",
"0x721c59e9"
],
[
"0x5f5e100",
"0x1dcd6500",
"0x59682f00"
],
[
"0x5f5e100",
"0x14d7d4ee",
"0x14d7d4ee"
],
[
"0x5f5e100",
"0x26be3680",
"0x77359400"
],
[
"0x5f5e100",
"0x3b9aca00",
"0x77359400"
],
[
"0x5f5e100",
"0x146c5a03",
"0x47868c00"
],
[
"0x59682f00",
"0x12a05f200",
"0x12a05f200"
],
[
"0x5f5e100",
"0x3b9aca00",
"0x4ee49dc7"
],
[
"0x5f5e100",
"0x202fbf00",
"0x77359400"
],
[
"0x5f5e100",
"0x11e1a300",
"0x3b9aca00"
],
[
"0x5f5e100",
"0x77359400",
"0xb7afcef9"
],
[
"0x5f5e100",
"0x246b1ec0",
"0x5ab7e080"
],
[
"0x5f5e100",
"0x16d5b899",
"0x59682f00"
]
]
}
}
Start Building with GetBlock RPCs for Free
Previous
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }
Next
{ "overview": "Overview", "guides": "Guides", "get-started": "Get Started", "rpc-service": "Nodes Methods", "getblock-explorer": "Explorer API", "getblock-tracker": "Tracker API", "nodes-endpoints": "Nodes Endpoints" }