eth_feeHistory - Ethereum
Retrieve historical gas fee data using eth_feeHistory. Useful for transaction analysis, optimization, and planning by providing gas fees and usage ratios for a specified block range.
Supported Networks
Parameters:
Request
URL
https://go.getblock.io/<ACCESS-TOKEN>/curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{
"jsonrpc": "2.0",
"method": "eth_feeHistory",
"params": [
61,
"latest",
[20, 60, 73]
],
"id": "getblock.io"
}'
wscat -c wss://go.getblock.io/<ACCESS-TOKEN>/
# wait for connection and send the request body
{"jsonrpc": "2.0",
"method": "eth_feeHistory",
"params": [61, "latest", [20, 60, 73]],
"id": "getblock.io"}Response
Response Description:
Use Case:
Code Example :
Last updated
Was this helpful?