MCP Ethers Wallet

queryLogs

Query historical Ethereum event logs by specifying filters like contract address, block range, and topics to analyze blockchain activity using the MCP Ethers Wallet server.

Instructions

Query historical logs

Input Schema

NameRequiredDescriptionDefault
addressNoThe contract address emitting the events (optional).
fromBlockNoThe starting block number (optional).
providerNoOptional. Either a network name or custom RPC URL. Use getSupportedNetworks to get a list of supported networks.
toBlockNoThe ending block number (optional).
topicsNoA list of topics to filter by. Each item can be a string, null, or an array of strings (optional)

Input Schema (JSON Schema)

{ "properties": { "address": { "description": "The contract address emitting the events (optional).", "type": "string" }, "fromBlock": { "description": "The starting block number (optional).", "type": [ "string", "number" ] }, "provider": { "description": "Optional. Either a network name or custom RPC URL. Use getSupportedNetworks to get a list of supported networks.", "type": "string" }, "toBlock": { "description": "The ending block number (optional).", "type": [ "string", "number" ] }, "topics": { "description": "A list of topics to filter by. Each item can be a string, null, or an array of strings (optional)", "items": { "items": { "type": "string" }, "type": [ "string", "null", "array" ] }, "type": "array" } }, "type": "object" }
ID: j75jbdup5m