-
Discord user IDahatch Describe your question in detail.Hey all! I was wondering how people go about getting account sequence number before sending a transaction using the typescript SDK? I have a server sending transactions, but whenever I send a transaction from my wallet on a different app, it causes my accountSequenceNumber to be incorrect. What error, if any, are you getting?No response What have you tried or looked at? Or how can we reproduce the error?No response Which operating system are you using?Windows Which SDK or tool are you using? (if any)TypeScript SDK Describe your environment or tooling in detailNo response |
Beta Was this translation helpful? Give feedback.
Answered by
0xmaayan
Jul 11, 2024
Replies: 1 comment
-
Hi! To get an account sequence number with the TS SDK, you can use
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
0xmaayan
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi! To get an account sequence number with the TS SDK, you can use
getAccountInfo
query API. https://github.com/aptos-labs/aptos-ts-sdk/blob/main/src/api/account.ts#L69