Skip to main content

eth_newPendingTransactionFilter

Overview

The 'eth_newPendingTransactionFilter' method creates a filter in the node, to notify when new pending transactions arrive. To check if the state has changed, call 'eth_getFilterChanges'.

Request

curl --request POST \
--url https://ethereum-mainnet-geth-archive.node.coinapi.io \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--header 'X-CoinAPI-Key: 73034021-THIS-IS-SAMPLE-KEY' \
--data '
{
"id": 1,
"jsonrpc": "2.0",
"method": "eth_newPendingTransactionFilter"
}'

Request Parameters

  • None

Response

{
"jsonrpc": "2.0",
"id": 1,
"result": "0x3bbc64139084e1e915dca87e990d708f"
}
  • string: The filter ID. This ID can be later used with 'eth_getFilterChanges' to get a list of pending transaction hashes.

Notes:

  • The filter can be removed using 'eth_uninstallFilter'.
  • To get the list of pending transaction hashes, use the filter ID with 'eth_getFilterChanges'.