Length of Dash wallet address

Gabriel Salinas

New Member
Mar 15, 2021
30
15
8
32
I'm developing a web app and would like to help the user input their correct wallet address. I'm thinking in doing this by making some validations. The first that came to mind is the length of the address but I need to be certain that all dash addresses have the same number of characters. Someone who knows that can confirm or deny this?

For the moment the length of the string is the only parameter I'm thinking on validating. If anyone knows something else I could validate I would appreciate it sharing it with me.
 

xkcd

Active Member
Masternode Owner/Operator
Feb 19, 2017
192
158
103
australia
mnowatch.org
Dash Address
XpoZXRfr2iFxWhfRSAK3j1jww9xd4tJVez
No, forget about size, size doesn't matter. Instead know that DASH addresses must use the characters in this set https://en.bitcoin.it/wiki/Base58Check_encoding and once the user is done inputting the address you can validate it using this RPC call
Code:
dash-cli validateaddress Xp5bmVYpVsTb2qr2QkxdvWbib9dcBRzNCW
Also, a DASH address will generally start with a X or a 7.