Skip to content

createPendingTransactionFilter

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

Usage

example.ts
import { publicClient } from "./client";
 
const filter = await publicClient.createPendingTransactionFilter(); 
Output: { id: "0x...", type: 'transaction' }

Returns

Filter

JSON-RPC Methods

cfx_newPendingTransactionFilter