# eth\_newBlockFilter

Creates a filter in the node, to notify when a new block arrives. To check if the state has changed, call [eth\_getFilterChanges](https://app.gitbook.com/o/-Ml9lAiUWtXZF3GXO6N3/s/iLoE65E22qMx9VF67gCT/~/changes/83/rpc-api-docs/chains/ethereum/standard-json-rpc-api/eth_getfilterchanges).

[**Ethereum.org API Reference**](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_newBlockFilter)

**Parameters**

None

**Returns**

`QUANTITY` - A filter id.

## Example

#### Request

```
curl --request POST \
     --url https://endpoints.omniatech.io/v1/RPC_ENDPOINT \
     --header 'accept: application/json' \
     --header 'content-type: application/json' \
     --data '
{
  "id": 1,
  "jsonrpc": "2.0",
  "method": "eth_newBlockFilter"
}
'
```

#### Response

```
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0x87a1252c71f5e32751e3fa806c80100"
}
```
