cast_logs
Filter and retrieve smart contract event logs by address, topics, signature, and block range via an RPC URL.
Instructions
Filter and retrieve event logs (cast logs).
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": {
"rpcUrl": "<rpcUrl>"
},
"name": "cast_logs"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | No | Output as JSON | |
| rpcUrl | Yes | RPC URL of the network | |
| topics | No | Topic filters (topic0, topic1, ...) | |
| address | No | Contract address to filter logs by | |
| toBlock | No | End block (number or tag) | |
| fromBlock | No | Start block (number or tag) | |
| signature | No | Event signature, e.g. "Transfer(address,address,uint256)" |