# Eth\_getLogs

## Get Logs

> Returns an array of logs that match the filter criteria specified in the params.\
> The filter object supports filtering by block range, addresses, and topics.<br>

```json
{"openapi":"3.0.0","info":{"title":"Ethereum JSON-RPC","version":"1.0.0"},"servers":[{"url":"https://zksync.nownodes.io"}],"security":[{"api-keyAuth":[]}],"components":{"securitySchemes":{"api-keyAuth":{"type":"apiKey","in":"header","name":"api-key"}}},"paths":{"/":{"post":{"tags":["eth_getLogs"],"summary":"Get Logs","operationId":"ethGetLogs","description":"Returns an array of logs that match the filter criteria specified in the params.\nThe filter object supports filtering by block range, addresses, and topics.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["jsonrpc","method","params","id"],"properties":{"jsonrpc":{"type":"string","description":"JSON-RPC version."},"method":{"type":"string","description":"JSON-RPC method name."},"params":{"type":"array","description":"Parameters array with one element: the filter object.\n","minItems":1,"maxItems":1,"items":{"type":"object","description":"Filter object for logs query","properties":{"fromBlock":{"type":"string","description":"Starting block number (hex string) or \"earliest\", \"latest\", \"pending\"."},"toBlock":{"type":"string","description":"Ending block number (hex string) or \"earliest\", \"latest\", \"pending\"."},"address":{"oneOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}],"description":"Contract address or list of addresses from which logs should originate."},"topics":{"type":"array","description":"Array of topic filters. Each topic can be a string, null, or an array of strings for OR filtering."}}}},"id":{"type":"integer","description":"Request identifier."}}}}}},"responses":{"200":{"description":"Array of log objects matching the filter","content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string","description":"JSON-RPC version."},"id":{"type":"integer","description":"Request ID."},"result":{"type":"array","description":"Array of log objects matching the filter.","items":{"type":"object","properties":{"address":{"type":"string","description":"Contract address emitting the log."},"topics":{"type":"array","description":"Array of topics provided by the contract.","items":{"type":"string"}},"data":{"type":"string","description":"Data associated with the log."},"blockNumber":{"type":"string","description":"Block number where this log was included, in hex."},"transactionHash":{"type":"string","description":"Hash of the transaction this log was created from."},"transactionIndex":{"type":"string","description":"Transaction index within the block, in hex."},"blockHash":{"type":"string","description":"Hash of the block where this log was included."},"logIndex":{"type":"string","description":"Index of the log within the block, in hex."},"removed":{"type":"boolean","description":"Indicates if the log was removed due to a chain reorganization."}}}}}}}}}}}}}}
```
