cryptaddress-validator
Validate Bitcoin, Ethereum, Litecoin & other popular cryptocurrency addresses.
Install
~ ❯❯❯ npm install cryptaddress-validator
Usage
const cryptaddress = ; //=> true //=> true //=> true //=> false //=> 'Unsupported cryptocurrency'
API
cryptaddress (cryptocurrency)
Returns the regex of the specified cryptocurrency.
cryptocurrency
Type: string
Cryptocurrency to build the appropriate validation regex.
Supported Cryptocurrencies
Bitcoin/BTC
Bitcoin Cash/BCH
(CashAddr addresses)Ethereum/ETH
Litecoin/LTC
Monero/XMR
Dash/DASH
Ripple/XRP
NEO/NEO
Dogecoin/DOGE
Related
- cryptocurrency-address-detector - Detect which cryptocurrency an address corresponds to.
- cryptaddress.now - Minimal service to detect which cryptocurrency an address corresponds to.
License
MIT © Nikolaos Kamarinakis