> ## Documentation Index
> Fetch the complete documentation index at: https://docs.validationcloud.io/llms.txt
> Use this file to discover all available pages before exploring further.

# eth_getFilterLogs

Returns an array of all logs matching filter with given id.

This method will use `40` [Compute Units](https://docs.validationcloud.io/nodeapi/about/billing.md).

***

## Reference: [Here](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getfilterlogs)

## **Parameters**

`QUANTITY` - the filter id.

```javascript theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
params: 
[
  "0x16", // 22
]
```

## Returns

`Array` - Array of log objects matching the filter, or an empty array if none match. Each log object has the following fields:

* `removed`: `Boolean` - `true` when the log was removed, due to a chain reorganization. `false` if its a valid log.
* `logIndex`: `QUANTITY` - integer of the log index position in the block. `null` when its pending log.
* `transactionIndex`: `QUANTITY` - integer of the transactions index position log was created from. `null` when its pending log.
* `transactionHash`: `DATA`, 32 Bytes - hash of the transactions this log was created from. `null` when its pending log.
* `blockHash`: `DATA`, 32 Bytes - hash of the block where this log was in. `null` when its pending. `null` when its pending log.
* `blockNumber`: `QUANTITY` - the block number where this log was in. `null` when its pending. `null` when its pending log.
* `address`: `DATA`, 20 Bytes - address from which this log originated.
* `data`: `DATA` - contains one or more 32 Bytes non-indexed arguments of the log.
* `topics`: `Array of DATA` - Array of 0 to 4 32 Bytes `DATA` of indexed log arguments. (In *solidity*: The first topic is the *hash* of the signature of the event (e.g. `Deposit(address,bytes32,uint256)`), except you declared the event with the `anonymous` specifier.)

```json theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
// Result
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    {
      "address": "0x0000000071727de22e5e9d8baf0edac6f37da032",
      "topics": [
        "0xbb47ee3e183a558b1a2ff0874b079f3fc5478b7454eacf2bfc5af2ff5878f972"
      ],
      "data": "0x",
      "blockHash": "0x8aa29d1d553e01967d72dea6f60cf1c07c6563c85fa673ebb1e5e17dd27d6bd9",
      "blockNumber": "0x24bcf00",
      "blockTimestamp": "0x6b1298d7",
      "transactionHash": "0x976ede826ce145939ff1d6ba66d01aa5c8e9aea7fba57db427949a4516f870ce",
      "transactionIndex": "0x1",
      "logIndex": "0x0",
      "removed": false
    },
    {
      "address": "0x0000000071727de22e5e9d8baf0edac6f37da032",
      "topics": [
        "0x49628fd1471006c1482da88028e9ce4dbb080b815c9b0344d39e5a8e6ec1419f",
        "0xd6e226fa264ba5a15cb5e225de120b01776eb9359bda510a214c238d9e8464c2",
        "0x000000000000000000000000a380ef7797fb48ddc63a085b815a74981e6a3dbf",
        "0x0000000000000000000000000000000000000000000000000000000000000000"
      ],
      "data": "0x0092c722c4903a4002837ca526e949e4084939208b36977a00000000000000000000000000000000000000000000000000000000000000000000000000000001...",
      "blockHash": "0x8aa29d1d553e01967d72dea6f60cf1c07c6563c85fa673ebb1e5e17dd27d6bd9",
      "blockNumber": "0x24bcf00",
      "blockTimestamp": "0x6b1298d7",
      "transactionHash": "0x976ede826ce145939ff1d6ba66d01aa5c8e9aea7fba57db427949a4516f870ce",
      "transactionIndex": "0x1",
      "logIndex": "0x7",
      "removed": false
    }
  ]
}
```

```bash title="mainnet" theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
curl https://mainnet.worldchain.validationcloud.io/v1/<YOUR_API_KEY_HERE> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"eth_getFilterLogs","params":["0xf6f7afd6067b82e45fc70d02144ca284"],"id":74}'
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.