eth_newPendingTransactionFilter - Ethereum

This method builds up a node filter for notifications about new pending transactions. You can check out for statement changes by calling the eth_getFilterChanges method

How to Use the eth_newPendingTransactionFilter Method

Parameters

No parameters.

What you receive

QUANTITY - A filter id.

Sample

Here is a typical appliance example.

Call

curl https://eth-mainnet.rpcfast.com/?api_key=<key> \
    -X POST \
    -H "Content-Type: application/json" \
    -d '{"jsonrpc":"2.0","method":"eth_newPendingTransactionFilter","params":[],"id":1}'

Outcome

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x1"
}

Last updated