5

Is there built-in functionality for getting the transaction count (nonce) for an account in Solidity?

1
  • 1
    No, there isn't. You need to have a counter in your fallback function or function that processes incoming transactions if I understood the question correctly. Commented Mar 14, 2017 at 11:27

1 Answer 1

3

No, an account's transaction count (nonce) is not available inside a smart contract.

The only property that a smart contract can obtain about any address, is its balance in wei: http://solidity.readthedocs.io/en/v0.4.21/units-and-global-variables.html#address-related

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.