eth_newPendingTransactionFilter
Creates a filter in the node, to notify when new pending transactions arrive. To check if the state has changed, call eth_getFilterChanges.
Parameters:
None
Returns:
QUANTITY - A filter id.
Example:
// Request
curl https://avalanche.blockpi.network/v1/rpc/your-rpc-key -X POST -H "Content-Type: application/json" --data '{"jsonrpc":"2.0","method":"eth_newPendingTransactionFilter","params":[],"id":1}'
// Result
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0xdb377fd425e1f024bc823ffb22781c13"
}Last updated
Was this helpful?