4

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.

3
  • 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. Aug 26, 2019 at 8:59
  • thanks Tomas, I think I understand. Aug 27, 2019 at 12:37
  • could you please post as an answer @TomášZemanovič ? thanks
    – Ezy
    Sep 1, 2019 at 19:12

1 Answer 1

3

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.