Skip to content
On this page

createPendingTransactionFilter

Creates a Filter to listen for new pending transaction hashes that can be used with getFilterChanges.

Usage

ts
import { publicClient } from '.'

const filter = await publicClient.createPendingTransactionFilter() 
// { id: "0x345a6572337856574a76364e457a4366", type: 'transaction' }

Returns

Filter

JSON-RPC Methods

eth_newPendingTransactionFilter

Released under the MIT License.