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 -X POST "https://docs-demo.blast-sepolia.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "eth_feeHistory",6"params": [74,8"latest",9[1025,117512]13],14"id": 115}'
1curl -X POST "https://docs-demo.blast-sepolia.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "eth_feeHistory",6"params": [74,8"latest",9[1025,117512]13],14"id": 115}'
Response
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"oldestBlock": "0x1e7380e",6"reward": [7[8"0x0",9"0x0"10],11[12"0x0",13"0x0"14],15[16"0x0",17"0x0"18],19[20"0x0",21"0x0"22]23],24"baseFeePerGas": [25"0xfc",26"0xfc",27"0xfc",28"0xfc",29"0xfc"30],31"gasUsedRatio": [320.0014655333333333334,330.0014655333333333334,340.0014655333333333334,350.001465533333333333436]37}38}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"oldestBlock": "0x1e7380e",6"reward": [7[8"0x0",9"0x0"10],11[12"0x0",13"0x0"14],15[16"0x0",17"0x0"18],19[20"0x0",21"0x0"22]23],24"baseFeePerGas": [25"0xfc",26"0xfc",27"0xfc",28"0xfc",29"0xfc"30],31"gasUsedRatio": [320.0014655333333333334,330.0014655333333333334,340.0014655333333333334,350.001465533333333333436]37}38}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free