MCP Ethers Wallet

contractEvents

Query historical smart contract events by specifying the contract address, ABI, and optional filters like event name, block range, or topics using this Ethereum network tool.

Instructions

Query historical events from a contract

Input Schema

NameRequiredDescriptionDefault
abiYesThe ABI of the contract as a JSON string
contractAddressYesThe address of the contract to query events from
eventNameNoThe name of the event to look for. (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": { "abi": { "description": "The ABI of the contract as a JSON string", "type": "string" }, "contractAddress": { "description": "The address of the contract to query events from", "type": "string" }, "eventName": { "description": "The name of the event to look for. (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" } }, "required": [ "contractAddress", "abi" ], "type": "object" }
ID: j75jbdup5m