When using GET address API, can not identify if the address is inactive or not valid #734
Unanswered
timyeou1234
asked this question in
Questions
Replies: 1 comment
-
there's a new aip that landed recenlty called stateless account, so all addresses are considered valid now, but checking seq number is a good way to tell if it's active (enough for most cases https://aptos.dev/build/aips/aip-115#do-dapps--cex-need-to-change-anything |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Discord user ID
No response
Describe your question in detail.
We are using
https://aptos.dev/en/build/apis/fullnode-rest-api-reference?network=mainnet#tag/accounts/GET/accounts/%7Baddress%7D
for address validation.
We detect if the sequence number is present or not to identify if the account to send to is active or not.
If this isn't the API you want us to use to decide the availability of a certain address, please advise the correct one.
What error, if any, are you getting?
It always returns 0 when the address is not valid or inactive(No txn yet)
What have you tried or looked at? Or how can we reproduce the error?
Just use the API with a random address
Which operating system are you using?
macOS
Which SDK or tool are you using? (if any)
REST API
Describe your environment or tooling in detail
No response
Beta Was this translation helpful? Give feedback.
All reactions