Skip to content

uninstallFilter

Destroys a Filter that was created from one of the following Actions:

Usage

example.ts
import { publicClient } from './client'
 
const filter = await publicClient.createPendingTransactionFilter()
const uninstalled = await publicClient.uninstallFilter({ filter }) 
// true

Returns

boolean

A boolean indicating if the Filter was successfully uninstalled.

Parameters

filter

A created filter.

const filter = await publicClient.createPendingTransactionFilter()
const uninstalled = await publicClient.uninstallFilter({
  filter, 
})

JSON-RPC Method

eth_uninstallFilter