aepp-sdk-js
aepp-sdk-js copied to clipboard
Implement local nonce management
check in relation to the generalized accounts
If an SDK instance keep track of an account nonce locally, then in a concurrent scenario, where multiple sdk instances build transactions for the same account, each SDK instance will have a nonce that is not align and very possibly wrong.
It is way better to shift the responsibility for nonce management to the entity that controls an account via the SDK
@mpowaga can you write a brief POC about how it could be done?
consider implementing this algorithm: https://devchat.aeternity.com/group/aepp-sdk?msg=obZt9MS5QjZzzhPvN
Can be fixed partially by using endpoint from here https://github.com/aeternity/aeternity/issues/3662