Ethereum RPC MCP Server

eth_call

Executes a call to a contract function without creating a transaction

Input Schema

NameRequiredDescriptionDefault
blockParameterNoBlock parameter (default: "latest")latest
transactionYesThe transaction call object

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "blockParameter": { "default": "latest", "description": "Block parameter (default: \"latest\")", "type": "string" }, "transaction": { "additionalProperties": false, "description": "The transaction call object", "properties": { "data": { "description": "The compiled code of a contract OR the hash of the invoked method signature and encoded parameters", "pattern": "^0x[a-fA-F0-9]*$", "type": "string" }, "from": { "description": "The address the transaction is sent from", "pattern": "^0x[a-fA-F0-9]{40}$", "type": "string" }, "gas": { "description": "Integer of the gas provided for the transaction execution in hex", "pattern": "^0x[a-fA-F0-9]+$", "type": "string" }, "gasPrice": { "description": "Integer of the gas price used for each paid gas in hex", "pattern": "^0x[a-fA-F0-9]+$", "type": "string" }, "to": { "description": "The address the transaction is directed to", "pattern": "^0x[a-fA-F0-9]{40}$", "type": "string" }, "value": { "description": "Integer of the value sent with this transaction in hex", "pattern": "^0x[a-fA-F0-9]+$", "type": "string" } }, "required": [ "to", "data" ], "type": "object" } }, "required": [ "transaction" ], "type": "object" }