I am trying to use ethjs.js to listen to pending transactions, but nothing really worked. Does anyone have a working example fetching pending transactions with ethjs.js?
I have tried the following:
https://github.com/ethjs/ethjs/blob/master/docs/user-guide.md#ethnewpendingtransactionfilter
https://github.com/ethjs/ethjs/blob/master/docs/user-guide.md#ethfilter
Thanks!
web3.eth.subscribe
function to create a WebSocket to listen for new pending txs: Using Web3.js 1.0 Subscribe and Infura WebSockets to Visualize Ethereum Transactions