How to validate NEM address function

Could anyone provide js function to validate NEM address in browser?
Couldn’t figure out how to do it throught nem api.

Did you check if what you need is not in nem-sdk? I don’t know this library but nanowallet use it (is created by main nanowallet dev)

Also probably you get quicker answer if you join @nemprojects channel on Telegram.

@Denis_Matafonov
EDIT: https://github.com/QuantumMechanics/NEM-sdk#72---verify-address-validity

1 Like

yep, thanks!

Works

1 Like

Quik code for those in need:

//Add script to page with require
<script>
    window.nem = require("nem-sdk").default;
</script>

//Validate
nem.model.address.isValid(address);
1 Like