Skip to main content

eth_newPendingTransactionFilter

Creates a filter in the node, to notify when new pending transactions arrive.

Params

(0)

Result

(Filter identifier)
string
Match pattern:
^0x(0|[1-9a-f][0-9a-f]*)$

Example

Request

await window.ethereum.request({
"method": "eth_newPendingTransactionFilter",
"params": []
});

Result

"0x01"

Request

await window.ethereum.request({
"method": "eth_newPendingTransactionFilter",
"params": []
});