Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTTP endpoint: get next nonce #3662

Closed
velzevur opened this issue Jun 15, 2021 · 1 comment · Fixed by #3666
Closed

HTTP endpoint: get next nonce #3662

velzevur opened this issue Jun 15, 2021 · 1 comment · Fixed by #3666
Assignees
Labels
area/api Issues or PRs related to the public API kind/feature Issues or PRs related to a new feature

Comments

@velzevur
Copy link
Member

Sending transactions for the same account from a distributed system requires knowledge for the latest account nonce. Since transactions can be included, rejected or even replaced by transactions with a competing nonce, the only source of truth shall be either a wallet or a synced node.

Provide an endpoint that returns what the next nonce for an account would be, taken into consideration transactions in the pool, originating from the same account.

@velzevur velzevur added kind/feature Issues or PRs related to a new feature area/api Issues or PRs related to the public API labels Jun 15, 2021
@velzevur velzevur self-assigned this Jun 15, 2021
@marc0olo
Copy link
Contributor

marc0olo commented Jun 22, 2021

I always thought about a tx-manager on client side that handles nonce-management (which of course would still make sense). but this is definitely an interesting solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/api Issues or PRs related to the public API kind/feature Issues or PRs related to a new feature
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants