MetaMask MCP

estimate-gas

Calculate the gas required for blockchain transactions without executing them, ensuring accurate cost estimation. Supports transactions with recipient addresses, contract calls, and gas fee parameters.

Instructions

Estimate the gas necessary to complete a transaction without submitting it to the network.

Input Schema

NameRequiredDescriptionDefault
chainIdNoChain ID to validate against before sending transaction.
dataNoA contract hashed method call with encoded args.
maxFeePerGasNoTotal fee per gas in wei, inclusive of maxPriorityFeePerGas.
maxPriorityFeePerGasNoMax priority fee per gas in wei.
toYesThe transaction recipient or contract address.
valueNoValue in wei sent with this transaction.

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "chainId": { "description": "Chain ID to validate against before sending transaction.", "type": "number" }, "data": { "$ref": "#/properties/to", "description": "A contract hashed method call with encoded args." }, "maxFeePerGas": { "description": "Total fee per gas in wei, inclusive of maxPriorityFeePerGas.", "format": "int64", "type": "integer" }, "maxPriorityFeePerGas": { "description": "Max priority fee per gas in wei.", "format": "int64", "type": "integer" }, "to": { "description": "The transaction recipient or contract address.", "type": "string" }, "value": { "description": "Value in wei sent with this transaction.", "format": "int64", "type": "integer" } }, "required": [ "to" ], "type": "object" }
ID: cw2ldcetl4