evm_filter_logs
Query and decode historical smart contract event logs across EVM chains by contract, topics, and block range, with automatic decoding of Transfer, Approval, and Swap events.
Instructions
Filter and decode blockchain event logs
Query historical events from smart contracts with advanced filtering. Automatically decodes common events like Transfer, Approval, Swap.
FEATURES:
Filter by contract, topics, block range
Automatic event decoding
Support for event signatures
Statistics and aggregation
PARAMETERS:
chain: Target blockchain
contractAddress: Contract to filter logs from
topics: Event topics array (optional)
fromBlock: Starting block
toBlock: Ending block
eventSignature: Event signature (optional)
decodeData: Decode log data (default true)
limit: Max logs to return (default 100)
Returns decoded events with timestamps and statistics.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chain": "<chain>",
"contractAddress": "<contractAddress>"
},
"name": "evm_filter_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | Yes | ||
| limit | No | ||
| topics | No | ||
| toBlock | No | latest | |
| fromBlock | No | latest | |
| decodeData | No | ||
| eventSignature | No | ||
| contractAddress | Yes |