eth_feeHistory RPC Method
Parameters
blockCount
string
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.matic.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "eth_feeHistory",6"params": [7"4",8"latest",9null10],11"id": 112}'
1curl -X POST "https://docs-demo.matic.quiknode.pro/" \2-H "Content-Type: application/json" \3-d '{4"jsonrpc": "2.0",5"method": "eth_feeHistory",6"params": [7"4",8"latest",9null10],11"id": 112}'
Response
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"oldestBlock": "0x51b2254",6"baseFeePerGas": [7"0x1751112b0e",8"0x1751a896e8",9"0x172fd56afc",10"0x16ff523cac",11"0x1701547d7e"12],13"gasUsedRatio": [140.7044393416666667,150.4142888,160.3395498,170.37291637518],19"baseFeePerBlobGas": [20"0x0",21"0x0",22"0x0",23"0x0",24"0x0"25],26"blobGasUsedRatio": [270,280,290,30031]32}33}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"oldestBlock": "0x51b2254",6"baseFeePerGas": [7"0x1751112b0e",8"0x1751a896e8",9"0x172fd56afc",10"0x16ff523cac",11"0x1701547d7e"12],13"gasUsedRatio": [140.7044393416666667,150.4142888,160.3395498,170.37291637518],19"baseFeePerBlobGas": [20"0x0",21"0x0",22"0x0",23"0x0",24"0x0"25],26"blobGasUsedRatio": [270,280,290,30031]32}33}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free