Verify wallet address

I’m looking to set tests so users don’t give the wrong information by mistake. It seems like wallet addresses are 103 characters long, is that the case? Are there other characteristics about wallet addresses that could be tested?

2 Likes

The addresses I have seen all start with 12R, and they seem base58

Hi @Josh_Hamon,

Addresses in Incognito are encoded in base58. To make sure your address is valid, try to deserialize them first by using the function Base58CheckDeserialize in the Go-SDK. In case you are dealing with js, you can find the same function in this repo.

4 Likes