Skip to main content
Glama

estimateGasCost

Calculate transaction gas costs in both native token and USD by providing chain ID, gas units, and optional gas fees for accurate Ethereum-based transaction budgeting.

Instructions

Estimate the gas cost for a transaction in both native token and USD

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
chainIdYesChain ID (e.g. 1 for Ethereum, 137 for Polygon)
gasUnitsYesEstimated gas units for the transaction
maxFeePerGasNoOptional max fee per gas in gwei
maxPriorityFeePerGasNoOptional max priority fee per gas in gwei

Other Tools

Related Tools

Latest Blog Posts

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