eth_getLogs
Retrieve blockchain event logs by filtering for specific contract addresses, topics, and block ranges to monitor smart contract activity and transaction events.
Instructions
Returns an array of all logs matching a given filter object
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "eth_getLogs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | No | Contract address (optional) | |
| fromBlock | No | Starting block (hex or 'latest', 'earliest', 'pending') | |
| toBlock | No | Ending block (hex or 'latest', 'earliest', 'pending') | |
| topics | No | Array of topic filters (optional) |