Skip to content
Discussion options

You must be logged in to vote

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

const accountInfo = await aptos.getAccountInfo({accountAddress:"0x123"});
console.log(accountInfo.sequence_number)

Replies: 1 comment

Comment options

0xmaayan
Jul 11, 2024
Maintainer Author

You must be logged in to vote
0 replies
Answer selected by 0xmaayan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ts-sdk Questions related to the TypeScript SDK
1 participant