eth_feeHistory RPC Method
Parameters
blockCount
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.monad-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.monad-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"result": {4"baseFeePerGas": [5"0x174876e800",6"0x174876e800",7"0x174876e800",8"0x174876e800",9"0x174876e800"10],11"gasUsedRatio": [120.006421405,130.054923285,140.036933915,150.00939619516],17"baseFeePerBlobGas": [18"0x0",19"0x0",20"0x0",21"0x0",22"0x0"23],24"blobGasUsedRatio": [250,260,270,28029],30"oldestBlock": "0x295e6e3",31"reward": [32[33"0x8d0b1694",34"0x8d0b1694"35],36[37"0x53724e000",38"0xdc9839a6d"39],40[41"0x109229f38",42"0x77359400"43],44[45"0x1836e21000",46"0x1836e21000"47]48]49},50"id": 151}
1{2"jsonrpc": "2.0",3"result": {4"baseFeePerGas": [5"0x174876e800",6"0x174876e800",7"0x174876e800",8"0x174876e800",9"0x174876e800"10],11"gasUsedRatio": [120.006421405,130.054923285,140.036933915,150.00939619516],17"baseFeePerBlobGas": [18"0x0",19"0x0",20"0x0",21"0x0",22"0x0"23],24"blobGasUsedRatio": [250,260,270,28029],30"oldestBlock": "0x295e6e3",31"reward": [32[33"0x8d0b1694",34"0x8d0b1694"35],36[37"0x53724e000",38"0xdc9839a6d"39],40[41"0x109229f38",42"0x77359400"43],44[45"0x1836e21000",46"0x1836e21000"47]48]49},50"id": 151}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free