on an account with no transaction set yet, using getTransactionCount will return 0. Should I specify the first transaction with nonce 0 or 1?

and on the next transactions after the above is mined, calling getTransaction() will return 1, if Should i set the next transaction with nonce 1 or 2?

1 Answer 1


Soldity indexes from 0 onwards; So to find the first transaction getTransaction(0). The next transaction will be 1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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