8

I've seen counters on some accounts. They've only made a few transactions, but counters are very big. What is the initial value of counter? How much will counter grow after I send a transaction?

6

The counter always increases by 1 for every operation - the difference is where the counter "starts".

When an implicit (tz*) account becomes active (goes from 0 balance to more than 0), it adopts the "global" counter. This is to save storage space, as when an implicit account is no longer active we don't need to track the counter anymore. It's important to note that an implicit account can go from inactive to active and back again many times.

Originated accounts start from 1 when they are originated.

  • Can we use an arbitrary counter or it's better ask through RPC the right one to use for a operation? – Rocco Musolino Apr 3 at 13:12

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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