eth_get_logs
Get event logs matching a filter on Ethereum mainnet. Requires at least fromBlock and toBlock. Optionally filter by contract address and topics.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| topics | No | Array of topic filters. Each element is a topic hash, null for wildcard, or an array of topic hashes for OR matching. | |
| address | No | Contract address to filter logs | |
| toBlock | Yes | Block number as hex (e.g. "0x1") or tag ("latest", "earliest", "pending") | |
| fromBlock | Yes | Block number as hex (e.g. "0x1") or tag ("latest", "earliest", "pending") |