Get decoded event logs
zenith_get_logsFetches decoded event logs for a contract or event across a block range by walking chunks newest to oldest; use nextToBlock to continue beyond the RPC's 1,000-block limit.
Instructions
Event logs for a contract and/or event over any block range, decoded. The public RPC only serves 1,000 blocks per call and has no filters or WebSockets, so the range is walked in chunks from newest to oldest; use nextToBlock to continue. Defaults to the last 1,000 blocks.
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": "zenith_get_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| event | No | Event signature, e.g. "Transfer(address indexed from, address indexed to, uint256 value)" | |
| address | No | EVM address (0x…) | |
| maxLogs | No | ||
| toBlock | No | ||
| fromBlock | No |