Skip to main content
Glama

agentek-eth

by NaniDAO

getFeeHistory

Retrieve historical gas fee data for Ethereum blocks using block count and chain ID. Analyze priority fees per gas with specified reward percentiles for targeted insights.

Instructions

Get historical gas fee info

Input Schema

NameRequiredDescriptionDefault
blockCountYesNumber of blocks in the requested range. Between 1 and 1024 blocks can be requested in a single query. Less than requested may be returned if not all blocks are available.
chainIdYes
rewardPercentilesNoA monotonically increasing list of percentile values to sample from each block's effective priority fees per gas in ascending order, weighted by gas used.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "blockCount": { "description": "Number of blocks in the requested range. Between 1 and 1024 blocks can be requested in a single query. Less than requested may be returned if not all blocks are available.", "type": "number" }, "chainId": { "type": "number" }, "rewardPercentiles": { "description": "A monotonically increasing list of percentile values to sample from each block's effective priority fees per gas in ascending order, weighted by gas used.", "items": { "type": "number" }, "type": "array" } }, "required": [ "blockCount", "chainId" ], "type": "object" }

You must be authenticated.

Other Tools from agentek-eth

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/NaniDAO/agentek'

If you have feedback or need assistance with the MCP directory API, please join our Discord server