Skip to main content
Glama

agentek-eth

by NaniDAO

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

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

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "chainId": { "description": "Chain ID (e.g. 1 for Ethereum, 137 for Polygon)", "type": "number" }, "gasUnits": { "description": "Estimated gas units for the transaction", "type": "number" }, "maxFeePerGas": { "description": "Optional max fee per gas in gwei", "type": "string" }, "maxPriorityFeePerGas": { "description": "Optional max priority fee per gas in gwei", "type": "string" } }, "required": [ "chainId", "gasUnits" ], "type": "object" }

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