I am using
newPendingTransactions and receive a stream of tx hashes. When I use
eth_getTransactionByHash to request the transaction bodies for these hashes, I see failure rates of over 40%. Perhaps this is because a new pending tx was received in one part of the Infura backend but isn’t available from the node that is serving my request? Whatever the cause, it makes the pending transaction stream basically unusable.
You might consider providing a websocket subscription of pending transaction bodies rather than just hashes. I’m not sure what use case the original designers had in mind with the hash-only subscription.
I found this thread where spiz reported the same problem: