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.bera-mainnet.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.bera-mainnet.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"baseFeePerGas": [6"0x34",7"0x34",8"0x34",9"0x34",10"0x34"11],12"gasUsedRatio": [130.16608211111111112,140.051311,150.05739786111111111,160.0535584444444444417],18"baseFeePerBlobGas": [19"0x1",20"0x1",21"0x1",22"0x1",23"0x1"24],25"blobGasUsedRatio": [260,270,280,29030],31"oldestBlock": "0x119f9b3",32"reward": [33[34"0x6c",35"0x6c"36],37[38"0x1",39"0x186a0"40],41[42"0x1",43"0x98964c"44],45[46"0x1",47"0x186a0"48]49]50}51}
1{2"jsonrpc": "2.0",3"id": 1,4"result": {5"baseFeePerGas": [6"0x34",7"0x34",8"0x34",9"0x34",10"0x34"11],12"gasUsedRatio": [130.16608211111111112,140.051311,150.05739786111111111,160.0535584444444444417],18"baseFeePerBlobGas": [19"0x1",20"0x1",21"0x1",22"0x1",23"0x1"24],25"blobGasUsedRatio": [260,270,280,29030],31"oldestBlock": "0x119f9b3",32"reward": [33[34"0x6c",35"0x6c"36],37[38"0x1",39"0x186a0"40],41[42"0x1",43"0x98964c"44],45[46"0x1",47"0x186a0"48]49]50}51}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free