Match an ETN address with a regular expression


I’m looking for a Regular Expression (regex) that will match an ETN address so that I can show an error and avoid sending coins to a non-address.
If there is none as of yet, I would be happy to make it if somebody were to let me know the exact form of an ETN address. I’ve noticed that it has to begin with “etn” but I know nothing else about disallowed characters, lengths and so forth.
I would be grateful for any help


Also depends if it’s a standard wallet, or a vendor wallet

As vendors use etn-it-xxxxxxxxxx
Besides discounting non alphanumerics and matching the correct length(s) I wouldn’t know the format sorry :slightly_frowning_face:


And hello kiwi, from a Westie :wink:


Haven’t checked, but from memory I believe its 95 Base58 encoded characters long with “etn” appended to the start (making it 98 total). You would need to check what that includes.

Its slightly different for integrated addresses…as the payment ID is added before being hashed.

You might want to review the paper wallet generator html file which may have something in it already.


This regex seems to match standard wallets: (?:^etn[1-9A-HJ-NP-Za-km-z]{95}$)
Thanks for your help :slight_smile: