Ethereum API Docs by GetBlock
  1. eth namespace
Ethereum API Docs by GetBlock
  • eth namespace
    • eth_call
      POST
    • eth_getBlockByNumber
      POST
    • eth_chainId
      POST
    • eth_syncing
      POST
    • eth_getBlockNumber
      POST
    • eth_getBalance
      POST
    • eth_getBlockByHash
      POST
    • eth_getTransactionCount
      POST
    • eth_estimateGas
      POST
    • eth_gasPrice
      POST
    • eth_getTransactionByHash
      POST
    • eth_getTransactionByBlockNumberAndIndex
      POST
    • eth_getTransactionReceipt
      POST
    • eth_feeHistory
      POST
    • eth_estimateGas
      POST
    • eth_getCode
      POST
    • eth_getLogs
      POST
    • eth_getCode
      POST
    • eth_sendRawTransaction
      POST
  • net namespace
    • net_listening
      POST
    • net_peerCount
      POST
    • net_version
      POST
  • web3 namespace
    • web3_clientVersion
      POST
    • web3_sha3
      POST
  1. eth namespace

eth_feeHistory

POST
{{GETBLOCK_URL}}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request POST '' \
--header 'Content-Type: application/json' \
--data-raw '{
    "jsonrpc": "2.0",
    "method": "eth_feeHistory",
    "id": "14",
    "params": [
        10,
        "latest",
        [5]
    ]
}'
Response Response Example
{
    "jsonrpc": "2.0",
    "id": "14",
    "result": {
        "oldestBlock": "0xccdaa1",
        "reward": [
            [
                "0x59682f00"
            ],
            [
                "0x59682f00"
            ],
            [
                "0x3b9aca00"
            ],
            [
                "0x59682f00"
            ],
            [
                "0x59682f00"
            ],
            [
                "0x540ae480"
            ],
            [
                "0x0"
            ],
            [
                "0x59682f00"
            ],
            [
                "0x59682f00"
            ],
            [
                "0x3b9aca00"
            ],
            [
                "0x59682f00"
            ],
            [
                "0x59682f00"
            ],
            [
                "0x77359400"
            ],
            [
                "0x77359400"
            ],
            [
                "0x2c5179e9216"
            ],
            [
                "0x2ef6295a566"
            ],
            [
                "0x2e93f154cb4"
            ],
            [
                "0x2c1cdd41c52"
            ],
            [
                "0x300725154e4"
            ],
            [
                "0x2d587b2814d"
            ],
            [
                "0x31beacff01e"
            ],
            [
                "0x36be9c29918"
            ],
            [
                "0x3366e0dd5f9"
            ],
            [
                "0x33e50ddf3ed"
            ],
            [
                "0x354780036b7"
            ],
            [
                "0x3389d2f94a5"
            ],
            [
                "0x33f88076bcf"
            ],
            [
                "0x361ae5e0e3a"
            ],
            [
                "0x3253d31b655"
            ],
            [
                "0x3136779dffc"
            ],
            [
                "0x2cf0d6b4b78"
            ],
            [
                "0x174876e8000"
            ],
            [
                "0x8618d1c3b2"
            ],
            [
                "0x5783d7127"
            ],
            [
                "0x3b9aca00"
            ],
            [
                "0x3b9aca00"
            ],
            [
                "0x77359400"
            ],
            [
                "0x73a20d00"
            ],
            [
                "0x9502f900"
            ],
            [
                "0x908a9040"
            ]
        ],
        "baseFeePerGas": [
            "0x16bbb5f95f",
            "0x1992cd3f1f",
            "0x1cc4693590",
            "0x1ad26d7524",
            "0x1b54f2999e",
            "0x18ea37e696",
            "0x178d2180bc",
            "0x156801b8b8",
            "0x12c13f4733",
            "0x14cb8eb2d6",
            "0x13e7072005",
            "0x11c49ac4e4",
            "0x13406bb849",
            "0x159f44aae0",
            "0x185302f9ea",
            "0x1b5cb6acc9",
            "0x1ec732a54c",
            "0x2298f11bae",
            "0x26ebbb8fc0",
            "0x2bc8ef4392",
            "0x31420c5be2",
            "0x3768d1a6e8",
            "0x3e53989a07",
            "0x461dec1dde",
            "0x4eda940949",
            "0x58b42a8cb0",
            "0x63ca8cd431",
            "0x70352401c6",
            "0x7e3944f52a",
            "0x8e001dd1cd",
            "0x9fbaa5f2b9",
            "0xb3ace82ea4",
            "0xca1c49a44e",
            "0xe35c679ed9",
            "0xffc4308ac5",
            "0x103e7df4e08",
            "0xe6750b7040",
            "0xd73386fc1f",
            "0xc6dae88f29",
            "0xbe8ab66221",
            "0xa96bb7c4f0"
        ],
        "gasUsedRatio": [
            0.9997436666666667,
            0.9995472666666667,
            0.2295189414203697,
            0.5760337666666666,
            0.14628616666666666,
            0.28107523333333334,
            0.13568603333333334,
            0.0045556847072167365,
            0.9351454666666666,
            0.32828806666666666,
            0.0710145,
            0.8340068,
            0.9925288955335115,
            0.9998806666666666,
            0.9995666897940827,
            0.9993689996203751,
            0.9963672771755393,
            0.9998523666666667,
            0.9998937666666666,
            0.9999988666666667,
            0.9995288333333333,
            0.999344273650114,
            0.9999690604548399,
            0.9984213067345702,
            0.9996563378388673,
            0.9999758568624304,
            0.9976939,
            0.9996499085309861,
            0.9999613999626866,
            0.9993967,
            0.9995037845543826,
            0.9994579591297924,
            0.9997356911754021,
            0.9997412054258034,
            0.5647369595171532,
            0.046781166666666665,
            0.2352058881169205,
            0.19616969096284828,
            0.33277743118995984,
            0.05661030673760812
        ]
    }
}

Request

Body Params application/json

Examples

Responses

🟢200eth_feeHistory
application/json
Body

Modified at 2025-06-04 20:29:31
Previous
eth_getTransactionReceipt
Next
eth_estimateGas
Built with