Ethereum RPC MCP Server

eth_getLogs

Retrieves logs matching the given filter criteria

Input Schema

NameRequiredDescriptionDefault
filterYesThe filter options

Input Schema (JSON Schema)

{ "$schema": "http://json-schema.org/draft-07/schema#", "additionalProperties": false, "properties": { "filter": { "additionalProperties": false, "description": "The filter options", "properties": { "address": { "anyOf": [ { "pattern": "^0x[a-fA-F0-9]{40}$", "type": "string" }, { "items": { "pattern": "^0x[a-fA-F0-9]{40}$", "type": "string" }, "type": "array" } ], "description": "Contract address or a list of addresses from which logs should originate" }, "fromBlock": { "description": "Block number in hex or \"latest\", \"earliest\" or \"pending\"", "type": "string" }, "toBlock": { "description": "Block number in hex or \"latest\", \"earliest\" or \"pending\"", "type": "string" }, "topics": { "description": "Array of 32 Bytes DATA topics", "items": { "anyOf": [ { "pattern": "^0x[a-fA-F0-9]{64}$", "type": "string" }, { "items": { "pattern": "^0x[a-fA-F0-9]{64}$", "type": "string" }, "type": "array" }, { "type": "null" } ] }, "type": "array" } }, "type": "object" } }, "required": [ "filter" ], "type": "object" }