UNPKG

@getdelta/wallet-address-validator

Version:

Wallet address validator for Bitcoin and other Altcoins.

15 lines (13 loc) 399 B
function isValidEOSAddress (address, currency, networkType) { var regex = /^[a-z0-9]+$/g // Must be numbers and lowercase letters only if (address.search(regex) !== -1 && address.length === 12) { return true } else { return false } } module.exports = { isValidAddress: function (address, currency, networkType) { return isValidEOSAddress(address, currency, networkType) } }