1

In Ethereum, does Account nonce depend on network?

I mean for same address on different network, will there be different nonce?

Aniket
  • 3,545
  • 2
  • 20
  • 42

2 Answers2

2

Yes, nonce is relative to the number of tx you did in the network.

So if do n tx on mainnet your ropsten nonce will still be 0.

Tclairet
  • 730
  • 4
  • 10
1

is Account nonce depends on network?

Yes. The nonce is part of the state data associated with each account. The state data will be difference for each different network you use the same address on (i.e. private key).

There is no way for one network's state data to be shared with another network.

Richard Horrocks
  • 37,835
  • 13
  • 87
  • 144
  • so my first contract deployed on both networks will have same contract address? – Aniket Mar 28 '19 at 12:45
  • Correct. A contract's address is generated deterministically. -> https://ethereum.stackexchange.com/questions/760/how-is-the-address-of-an-ethereum-contract-computed (And is dependent on the nonce.) – Richard Horrocks Mar 28 '19 at 12:47