Contract event logs (eth_getLogs, optional decode)
chain_logsRecent event logs emitted by a contract over the last N blocks (1–2000, default 100), newest first. Pass an event signature such as 'Swap(address indexed sender, uint256 amount0In, …)' to filter AND decode args by name, or a raw topic0 to filter only. Returns block, tx hash, log index, topics, data and decoded args. Price: $0.002 per call (USDC on Base via x402); the first 10 calls per day are free.
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": "chain_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Chain (default base) | |
| event | No | Optional Solidity event signature to filter + decode | |
| limit | No | Max logs returned, 1–200 (default 50) | |
| blocks | No | Recent blocks to scan, 1–2000 (default 100) | |
| topic0 | No | Optional raw topic0 (0x + 64 hex) instead of event | |
| address | Yes | Contract address 0x… |