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

# eth_newFilter | Arc

> Arc API method that creates a new filter for logs matching specified criteria. The filter can be polled with eth_getFilterChanges.

Arc API method that creates a new filter for logs matching specified criteria. The filter can be polled with `eth_getFilterChanges`.

## Parameters

* `filterObject` — the filter object:
  * `fromBlock` — (optional) block number (hex) or tag to start from
  * `toBlock` — (optional) block number (hex) or tag to end at
  * `address` — (optional) contract address or array of addresses
  * `topics` — (optional) array of topic filters

## Response

* `result` — the filter ID

## `eth_newFilter` code examples

```javascript ethers.js theme={"system"}
const ethers = require('ethers');
const NODE_URL = "CHAINSTACK_NODE_URL";
const provider = new ethers.JsonRpcProvider(NODE_URL);

const USDC = "0x3600000000000000000000000000000000000000";

const createFilter = async () => {
    const filterId = await provider.send("eth_newFilter", [{
      address: USDC,
      fromBlock: "latest",
      toBlock: "latest"
    }]);
    console.log(`Filter ID: ${filterId}`);
  };

createFilter();
```

```python web3.py theme={"system"}
from web3 import Web3

node_url = "CHAINSTACK_NODE_URL"
web3 = Web3(Web3.HTTPProvider(node_url))

USDC = "0x3600000000000000000000000000000000000000"

filter_id = web3.eth.filter({
    'address': USDC,
    'fromBlock': 'latest'
})
print(f"Filter ID: {filter_id.filter_id}")
```

```bash cURL theme={"system"}
curl -X POST "CHAINSTACK_NODE_URL" \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "method": "eth_newFilter",
    "params": [{"address": "0x3600000000000000000000000000000000000000", "fromBlock": "latest"}],
    "id": 1
  }'
```


## OpenAPI

````yaml openapi/arc_node_api/filter_handling/eth_newFilter.json POST /
openapi: 3.0.0
info:
  title: Chainstack Node API
  version: 1.0.0
  description: This is an API for interacting with a Chainstack node.
servers:
  - url: https://arc-mainnet.core.chainstack.com/mt_c524ad9781ae5dccd9ac6f5b0370e
security: []
paths:
  /:
    post:
      tags:
        - upload
      summary: eth_newFilter
      operationId: eth_newFilter
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                id:
                  type: integer
                  default: 1
                jsonrpc:
                  type: string
                  default: '2.0'
                method:
                  type: string
                  default: eth_newFilter
                params:
                  type: array
                  default:
                    - fromBlock: '0x1c69aef'
                      toBlock: '0x1c69aef'
      responses:
        '200':
          description: Returns the result of eth_newFilter.
          content:
            application/json:
              schema:
                type: object
                properties:
                  jsonrpc:
                    type: string
                  id:
                    type: integer
                  result:
                    type: string
              example:
                jsonrpc: '2.0'
                id: 1
                result: '0x5419feab97c4f4feba2c5cc2200db741'

````