eth_getLogs
Retrieve blockchain event logs by filtering for specific contract addresses, topics, and block ranges to monitor smart contract activity and transaction events.
Instructions
Returns an array of all logs matching a given filter object
Input Schema
Name | Required | Description | Default |
---|---|---|---|
address | No | Contract address (optional) | |
fromBlock | No | Starting block (hex or 'latest', 'earliest', 'pending') | |
toBlock | No | Ending block (hex or 'latest', 'earliest', 'pending') | |
topics | No | Array of topic filters (optional) |
Input Schema (JSON Schema)
{
"properties": {
"address": {
"description": "Contract address (optional)",
"type": "string"
},
"fromBlock": {
"description": "Starting block (hex or 'latest', 'earliest', 'pending')",
"type": "string"
},
"toBlock": {
"description": "Ending block (hex or 'latest', 'earliest', 'pending')",
"type": "string"
},
"topics": {
"description": "Array of topic filters (optional)",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
}