eth_feeHistory RPC Method
Parameters
blockCount
string/integer
REQUIRED
Loading...
newestBlock
string
REQUIRED
Loading...
rewardPercentiles
integer
REQUIRED
Loading...
Returns
oldestBlock
Loading...
baseFeePerGas
Loading...
gasUsedRatio
Loading...
reward
Loading...
Request
1curl https://docs-demo.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"eth_feeHistory","params":[4, "latest", [25, 75]],"id":1,"jsonrpc":"2.0"}'
1curl https://docs-demo.quiknode.pro/ \2-X POST \3-H "Content-Type: application/json" \4--data '{"method":"eth_feeHistory","params":[4, "latest", [25, 75]],"id":1,"jsonrpc":"2.0"}'
Response
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"oldestBlock": "0x1554ec2",6"reward": [7[8"0x4b571c0",9"0x2f23c46c"10],11[12"0x396c1b9",13"0x4d579d50"14],15[16"0x77359400",17"0x77359400"18],19[20"0x2faf080",21"0x3b9aca00"22]23],24"baseFeePerGas": [25"0x3af6c9f1",26"0x3b19496d",27"0x36647614",28"0x302c838b",29"0x359f85b3"30],31"gasUsedRatio": [320.5091416944444445,330.18145872222222223,340.04269041059401201,350.952465203785614836],37"baseFeePerBlobGas": [38"0x320b8540d",39"0x384cf5f4e",40"0x3f5694c1f",41"0x44831ac79",42"0x3f5694c1f"43],44"blobGasUsedRatio": [451,461,470.8333333333333334,480.1666666666666666649]50}51}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"oldestBlock": "0x1554ec2",6"reward": [7[8"0x4b571c0",9"0x2f23c46c"10],11[12"0x396c1b9",13"0x4d579d50"14],15[16"0x77359400",17"0x77359400"18],19[20"0x2faf080",21"0x3b9aca00"22]23],24"baseFeePerGas": [25"0x3af6c9f1",26"0x3b19496d",27"0x36647614",28"0x302c838b",29"0x359f85b3"30],31"gasUsedRatio": [320.5091416944444445,330.18145872222222223,340.04269041059401201,350.952465203785614836],37"baseFeePerBlobGas": [38"0x320b8540d",39"0x384cf5f4e",40"0x3f5694c1f",41"0x44831ac79",42"0x3f5694c1f"43],44"blobGasUsedRatio": [451,461,470.8333333333333334,480.1666666666666666649]50}51}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free