get_logs
Retrieve event logs matching contract address, topics, and block range to track on-chain contract events across supported chains.
Instructions
Get event logs matching filter criteria. Powerful for tracking contract events.
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": {
"address": "<address>"
},
"name": "get_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Chain name or ID (default: ethereum) | |
| topic0 | No | Event signature hash (first topic) | |
| topic1 | No | Second topic (usually first indexed param) | |
| topic2 | No | Third topic | |
| topic3 | No | Fourth topic | |
| address | Yes | Contract address (0x...) | |
| toBlock | No | End block | latest |
| fromBlock | No | Start block |