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

account.nonce getter #69

Closed
DanielRX opened this issue Sep 12, 2019 · 3 comments
Closed

account.nonce getter #69

DanielRX opened this issue Sep 12, 2019 · 3 comments
Labels
enhancement New feature or request P2 Pretty important

Comments

@DanielRX
Copy link
Contributor

get nonce(): number { return this._accessKey.nonce; }

Something as simple as this would allow the nonce to be retreived from the account object, which would allow some more complex "sign then send" functions

@chadoh chadoh added enhancement New feature or request P2 Pretty important labels May 26, 2020
@chadoh
Copy link
Contributor

chadoh commented May 26, 2020

@DanielRX would #52 also be an acceptable way to address this need?

@DanielRX
Copy link
Contributor Author

DanielRX commented May 26, 2020

No? That wouldn't allow me to access the nonce at all. It's not for the sake of retrying the tx

@mehtaphysical
Copy link
Contributor

Is this still an issue? Can get the nonce with:

const { nonce } = await account.findAccessKey();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request P2 Pretty important
Projects
None yet
Development

No branches or pull requests

3 participants