I'm trying to get information whether there are pending transactions for the given address. My code is as follows:
web3.eth.getTransactionCount(‘ADDRESS’, ‘pending’, function(error, result){
if(!error)
console.log(JSON.stringify(result));
else
console.error(error);
})
This works, however it returns the count of ALL of the transactions I see in Metamask, not just the ones in "pending" state.
Any clues how can I get only the pending ones?
Thanks!
nonce