The eth_newPendingTransactionFilter method creates a filter in the node to notify when new pending transactions are received in the mempool. This allows applications to monitor the transaction mempool without continuously polling, helping you track transactions before they're included in blocks.
Use Cases
Mempool monitoring and analysis for research
Front-running detection in trading applications
Gas price optimization for transaction submission
Transaction confirmation tracking in wallets
Market sentiment analysis for trading strategies
DEX trading monitoring for arbitrage opportunities
Network congestion monitoring for gas fee estimation
MEV (Miner Extractable Value) research and exploitation
Detecting large token transfers before confirmation
Monitoring smart contract interactions in real-time
Method Details
This method takes no parameters and returns a filter ID that can be used with eth_getFilterChanges to poll for new pending transactions.
Parameters:
Parameters is empty
Returns:
Filter ID (hex string) used for polling with eth_getFilterChanges