eth_newPendingTransactionFilter
The eth_newPendingTransactionFilter method creates a filter in the node to notify when new pending transactions arrive. This method returns a filter ID that can be used with eth_getFilterChanges to poll for pending transactions in the mempool. It's valuable for applications monitoring transaction activity, MEV bots, or services that need to track unconfirmed transactions.
Parameters
This method does not require any parameters.
Return Object
The method returns a filter ID as a hexadecimal string that can be used with eth_getFilterChanges to poll for pending transactions.
Request Example
Request
Response Example
Response