2

I know that counter is always incremented by 1, but what I don't understand is how to get the initial value of counter for an account.

  • You can get the counter value from RPC, if it's been initalized. You can not however assign it yourself, it gets incremented itself to prevent replay attack. – Tomáš Zemanovič Aug 26 at 8:59
  • thanks Tomas, I think I understand. – ZhangYunfei Aug 27 at 12:37
  • could you please post as an answer @TomášZemanovič ? thanks – Ezy Sep 1 at 19:12
2

You can get the counter value from RPC, if it's been initialized. You can not however assign it yourself, it gets incremented itself to prevent replay attack.

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.