get_events
Retrieve blockchain event logs by specifying network, contract addresses, and topic filters. Access detailed on-chain activity data for analysis and monitoring purposes.
Instructions
Fetches event logs for a given network and filter criteria
Input Schema
Name | Required | Description | Default |
---|---|---|---|
addresses | Yes | List of contract addresses to filter events | |
fromBlock | No | Block number to start fetching logs from | |
network | Yes | The blockchain network (e.g., "ethereum", "base") | |
optionalTopics | No | Optional additional topics | |
toBlock | No | Block number to stop fetching logs at | |
topic | Yes | Primary topic to filter events |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"addresses": {
"description": "List of contract addresses to filter events",
"items": {
"type": "string"
},
"type": "array"
},
"fromBlock": {
"description": "Block number to start fetching logs from",
"type": "number"
},
"network": {
"description": "The blockchain network (e.g., \"ethereum\", \"base\")",
"type": "string"
},
"optionalTopics": {
"description": "Optional additional topics",
"items": {
"type": [
"string",
"null"
]
},
"type": "array"
},
"toBlock": {
"description": "Block number to stop fetching logs at",
"type": "number"
},
"topic": {
"description": "Primary topic to filter events",
"type": "string"
}
},
"required": [
"network",
"addresses",
"topic"
],
"type": "object"
}