I want to count nonce include pending transactions as following.
Tx1 nonce=0 succeed
Tx2 nonce=1 pending
Tx3 nonce=2 pending
Tx3 nonce=3 pending
I am using api provided by etherscan, but it just returns nonce for only confirmed transactions. How can I get nonce include pending transactions?