eth_feeHistory
Returns transaction base fee per gas and effective priority fee per gas for the requested/supported block range.
This method will use 20 Compute Units.
Parameters
- blockCount, String/Integer - The number of blocks in the requested range. Between 1 and 1024 blocks can be requested in a single query. It will return less than the requested range if not all blocks are available.
- newestBlock- String - hexadecimal block number, or the string- "latest",- "earliest"or- "pending", see the default block parameter.
- rewardPercentiles- Integer - A list of values that go up in order, showing how much people are willing to pay to have their transactions processed quickly. These values are based on:- Looking at each block in the time period you're interested in 
- Ranking the transactions by how much extra tip they offered per unit of gas 
- Calculating the typical tip amount for different levels (percentiles) 
- Taking into account how much gas each transaction used 
 - This helps you understand what people are typically paying to get their transactions processed at different speed levels. 
Returns
INTEGER - Hex value representing integer of the current balance in WEI.
// Result
{
	"jsonrpc": "2.0",
	"result": {
		"baseFeePerGas": [
			"0xba43b7400",
			"0xba43b7400",
			"0xba43b7400",
			"0xba43b7400",
			"0xba43b7400"
		],
		"gasUsedRatio": [
			0.09815686,
			0.09815686,
			0.09815686,
			0.09815686
		],
		"baseFeePerBlobGas": [
			"0xba43b7400",
			"0xba43b7400",
			"0xba43b7400",
			"0xba43b7400",
			"0xba43b7400"
		],
		"blobGasUsedRatio": [
			0.0,
			0.0,
			0.0,
			0.0
		],
		"oldestBlock": "0x196b242",
		"reward": [
			[
				"0x0",
				"0x0"
			],
			[
				"0x0",
				"0x0"
			],
			[
				"0x0",
				"0x0"
			],
			[
				"0x0",
				"0x0"
			]
		]
	},
	"id": 1
}curl https://testnet.monad.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"eth_feeHistory","params":[4, "latest", [25, 75]],"id":1}'
Last updated
Was this helpful?