Skip to main content
Glama

eth_estimateGas

Estimate gas costs for Ethereum transactions before execution to optimize fees and prevent failed transactions due to insufficient gas.

Instructions

Generates and returns an estimate of how much gas is necessary

Input Schema

TableJSON Schema
NameRequiredDescriptionDefault
dataNoData to send (hex string)
fromNoFrom address
gasNoGas limit
gasPriceNoGas price
toNoContract address (optional for contract creation)
valueNoValue in wei

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/JamesANZ/evm-mcp'

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