1

This question already has an answer here:

I know of three ways to get the nonce for an account.

  • MyEtherWallet under the Offline Transactions tab.
  • At the command line with Geth
  • Manually count the number of outgoing transactions for an account using Etherscan. Oddly, Etherscan counts the number of transactions for an account and displays this value on the account page but does not display the number of outgoing transactions (the nonce).

My question is: does anyone know of any other quick methods of getting the nonce for an account?

Thanks, John

marked as duplicate by Ismael, lungj, eth Sep 26 '17 at 1:03

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • To the answer of the duplicated question, I added an option of using a service like Infura. (Marking this a duplicate so that 1 place for the answer; feel free to add your own answers.) – eth Sep 26 '17 at 1:02
  • 1
    Thanks eth. That's I was hoping for some website like etherscan that I could go to and put in the account number an get the nonce back. MyEtherWallet is the only thing I found like that so far. Still this a good technique that I can put in my bag of tricks. Thanks for the help – John Shearing Sep 27 '17 at 17:20
0
web3.eth.getTransactionCount(address) 

if you want to compose raw transactions, the field looks like this:

nonce: web3.toHex(web3.eth.getTransactionCount(address)) 

API reference

Not the answer you're looking for? Browse other questions tagged or ask your own question.