eth_feeHistory RPC Method
Parameters
blockCount
string/integer
REQUIRED
Loading...
newestBlock
string
REQUIRED
Loading...
rewardPercentiles
array
REQUIRED
Loading...
Returns
oldestBlock
Loading...
baseFeePerGas
Loading...
gasUsedRatio
Loading...
reward
Loading...
Request
1curl -X POST "https://docs-demo.bsc.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.bsc.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": "0x5b5b452",6"reward": [7[8"0x2faf080",9"0x3197500"10],11[12"0x2faf080",13"0x3e9bd50"14],15[16"0x2faf080",17"0x3197500"18],19[20"0x2faf080",21"0x3e9bd50"22]23],24"baseFeePerGas": [25"0x0",26"0x0",27"0x0",28"0x0",29"0x0"30],31"gasUsedRatio": [320.3780603454545455,330.28568356363636366,340.4123056727272727,350.309184581818181836],37"baseFeePerBlobGas": [38"0x1",39"0x1",40"0x1",41"0x1",42"0x1"43],44"blobGasUsedRatio": [450,460,470,48049]50}51}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"oldestBlock": "0x5b5b452",6"reward": [7[8"0x2faf080",9"0x3197500"10],11[12"0x2faf080",13"0x3e9bd50"14],15[16"0x2faf080",17"0x3197500"18],19[20"0x2faf080",21"0x3e9bd50"22]23],24"baseFeePerGas": [25"0x0",26"0x0",27"0x0",28"0x0",29"0x0"30],31"gasUsedRatio": [320.3780603454545455,330.28568356363636366,340.4123056727272727,350.309184581818181836],37"baseFeePerBlobGas": [38"0x1",39"0x1",40"0x1",41"0x1",42"0x1"43],44"blobGasUsedRatio": [450,460,470,48049]50}51}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free