# eth\_newPendingTransactionFilter

Creates a filter in the node, to notify when new pending transactions arrive. To check if the state has changed, call [eth\_getFilterChanges](https://ethereum.org/en/developers/docs/apis/json-rpc/#eth_getfilterchanges).

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

**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_newPendingTransactionFilter"
}
'
```

#### Response

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