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