Subscribe Pending Transactions

I’m subscribing to pending transactions, works fine.

Problem is, this returns only the txhash for ALL pending transactions – I really only want pending transactions sent to my smart contract address.

Is there a filter that will allow me to get just these?

Because otherwise I will have to get the details for EVERY txhash on that list to determine if they were sent to my contract. Obviously that would use up my daily allowance very quickly.

Any ideas?

Unfortunately filters on the pending transactions subscription is not supported by the client (i.e. Geth, Parity) at this time. We have been working on improvements to the pending transaction functionality that would extend how the clients support, this is a great next feature idea for that system and we will definitely add it to our backlog.

1 Like