# eth_getLogs: parameters, returns and CU

> Original page: https://docs.blockvectra.com/en/api/json-rpc/methods/eth_getLogs/

## Summary

Query event logs within a block range that match a filter.

## Compute Units (CU) and Pricing

CU weight, price and per-chain availability are shown on the method page: https://docs.blockvectra.com/en/api/json-rpc/methods/eth_getLogs/

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| `filter` | `object` | Filter object: fromBlock and toBlock (block number or tag, default latest), address (one address or an array of addresses), topics (an array where each item is null, a 32-byte topic, or an array of topics), or blockHash to target a single block. |

## Returns

- **Type**: `ARRAY`
- **Description**: Array of log objects in block order; an empty array when nothing matches.

## Notes

blockHash is mutually exclusive with fromBlock/toBlock; topics match by position, and null means any value at that position.

## Request Example

```bash
curl -X POST "https://dev-api.blockvectra.network/v1/robinhood_mainnet" \
  -H 'Content-Type: application/json' \
  -H 'x-api-key: <api_key>' \
  -d '{
    "jsonrpc": "2.0",
    "method": "eth_getLogs",
    "params": [
      {
        "address": "<address>",
        "fromBlock": "<fromBlock>",
        "toBlock": "latest"
      }
    ],
    "id": 1
  }'
```
