> ## 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.

# kaia_newFilter

> Creates a log filter based on the provided options.

### Parameters

**chainId** `string` *required* (default: 1001)

Unique identifier for a blockchain network.

**id** `number` *required* (default: 1)

Request identifier used to match responses.

**jsonrpc** `string` *required* (default: 2.0)

JSON-RPC version.

**method** `string` *required* (default: kaia\_newFilter)

JSON-RPC method name.

**params** `object` *required*

Parameters: \[filterOptions].

Positional parameters for `kaia_newFilter`:

<ul>
  <li>`params[]`: Filter options used to create a new log filter.</li>
</ul>

### Returns

**result** `string`

The filter ID as a hex quantity (e.g., "0x16" for 22).

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

```json Success theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": ""
}
```


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