uninstallFilter
Destroys a Filter that was created from one of the following actions:
Import
ts
import { uninstallFilter } from 'viem/public'
Usage
ts
import { createPendingTransactionFilter, uninstallFilter } from 'viem/public'
import { publicClient } from '.'
const filter = await createPendingTransactionFilter(publicClient)
const uninstalled = await uninstallFilter(publicClient, { filter })
// true
Returns
boolean
A boolean indicating if the Filter was successfully uninstalled.
Parameters
filter
- Type:
Filter
A created filter.
ts
const filter = await createPendingTransactionFilter(publicClient)
const uninstalled = await uninstallFilter(publicClient, {
filter,
})