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