> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uniblock.dev/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.

### Parameters

<ParamField query="chainId" type="string" default="10" required>
  Unique identifier for a blockchain network.
</ParamField>

<ParamField body="id" type="number" default={1} required>
  Request identifier used to match responses.
</ParamField>

<ParamField body="jsonrpc" type="string" default="2.0" required>
  JSON-RPC version.
</ParamField>

<ParamField body="method" type="string" default="eth_getFilterLogs" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={["0x16"]} placeholder="[&#x22;0x16&#x22;]" required>
  Parameters for eth\_getFilterChanges: \[filterId].

  Positional parameters for <code>eth\_getFilterLogs</code>:

  <ul>
    <li><code>params\[0]</code>: The filter ID as a hex quantity (e.g., "0x16" for 22).</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="array">
  Array of log objects, or an empty array if nothing has changed since last poll.

  <Expandable title="items">
    <ResponseField name="items[]" type="array">
      Array of log objects generated by this transaction. Each log contains indexed topics and data.

      <Expandable title="items">
        <ResponseField name="items[]" type="object">
          <Expandable title="properties">
            <ResponseField name="address" type="string">
              Address from which this log originated.
            </ResponseField>

            <ResponseField name="topics" type="array">
              Indexed log topics.

              <Expandable title="items">
                <ResponseField name="items[]" type="string" />
              </Expandable>
            </ResponseField>

            <ResponseField name="data" type="string">
              Data portion of the log.
            </ResponseField>

            <ResponseField name="blockNumber" type="integer" />

            <ResponseField name="transactionHash" type="string" />

            <ResponseField name="transactionIndex" type="integer" />

            <ResponseField name="blockHash" type="string" />

            <ResponseField name="logIndex" type="integer" />

            <ResponseField name="removed" type="boolean">
              Indicates whether this log was removed due to a chain reorg.
            </ResponseField>
          </Expandable>
        </ResponseField>
      </Expandable>
    </ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash Curl theme={null}
  curl --request POST \
    --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=10 \
    --header 'content-type: application/json' \
    --data '{
      "id": 1,
      "jsonrpc": "2.0",
      "method": "eth_getFilterLogs",
      "params": [
        "0x16"
      ]
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": [
      {
        "logIndex": "0x1",
        "blockNumber": "0x1b4",
        "blockHash": "0x8216c5785ac562ff41e2dcfdf5785ac562ff41e2dcfdf829c5a142f1fccd7d",
        "transactionHash": "0xdf829c5a142f1fccd7d8216c5785ac562ff41e2dcfdf5785ac562ff41e2dcf",
        "transactionIndex": "0x0",
        "address": "0x16c5785ac562ff41e2dcfdf829c5a142f1fccd7d",
        "data": "0x0000000000000000000000000000000000000000000000000000000000000000",
        "topics": [
          "0x59ebeb90bc63057b6515673c3ecf9438e5058bca0f92585014eced636878c9a5"
        ]
      }
    ]
  }
  ```
</ResponseExample>
