
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
crypto-coin-address-validator
Advanced tools
crypto address validator for Bitcoin and other Altcoins.
Simple wallet address validator for validating Bitcoin and other altcoins addresses in Node.js and browser.
Forked from ryanralph/altcoin-address.
File size is ~17 kB (minifed and gzipped).
npm install multicoin-address-validator
<script src="wallet-address-validator.min.js"></script>
'bitcoin' (default), 'litecoin' or 'LTC''prod' (default) to enforce standard address, 'testnet' to enforce testnet address and 'both' to enforce nothing.Returns true if the address (string) is a valid wallet address for the crypto currency specified, see below for supported currencies.
'0x' or 'zrx''Aragon' or 'ant''Augur' or 'rep''AuroraCoin' or 'aur''Bancor' or 'bnt''Bankex' or 'bkx''Basic Attention Token' or 'bat''BeaverCoin' or 'bvc''BioCoin' or 'bio''Bitcoin' or 'btc''Bitcoin SV' or 'bsv''BitcoinCash' or 'bch''BitcoinGold' or 'btg''BitcoinPrivate' or 'btcp''BitcoinZ' or 'btcz''BTU Protocol' or 'btu''Callisto' or 'clo''Cardano' or 'ada''Chainlink' or 'link''Civic' or 'cvc''Cred' or 'lba''Crypto.com Coin' or 'cro''Dash' or 'dash''Decred' or 'dcr''DigiByte' or 'dgb''District0x' or 'dnt''DogeCoin' or 'doge''Enjin Coin' or 'enj''EOS' or 'eos''Ethereum' or 'eth''EthereumClassic' or 'etc''EtherZero' or 'etz''Expanse' or 'exp''FreiCoin' or 'frc''GameCredits' or 'game''GarliCoin' or 'grlc''Gnosis' or 'gno''Golem' or 'gnt''HedgeTrade' or 'hedg''Hush' or 'hush''HyperSpace' or 'xsc''iExec RLC' or 'rlc''Komodo' or 'kmd''LBRY Credits' or 'lbc''Lisk' or 'lsk''LiteCoin' or 'ltc''loki' or 'loki''Loom Network' or 'loom''Maker' or 'mkr''Matchpool' or 'gup''MegaCoin' or 'mec''Melon' or 'mln''Metal' or 'mtl''MonaCoin' or 'mona''Monero' or 'xmr''Multi-collateral DAI' or 'dai''NameCoin' or 'nmc''Nano' or 'nano''Nem' or 'xem''Neo' or 'neo''NeoGas' or 'gas''Numeraire' or 'nmr''Ocean Protocol' or 'ocean''Odyssey' or 'ocn''OmiseGO' or 'omg''PeerCoin' or 'ppc''PIVX' or 'pivx''Polymath' or 'poly''PrimeCoin' or 'xpm''ProtoShares' or 'pts''Qtum' or 'qtum''Quant' or 'qnt''RaiBlocks' or 'xrb''Ripio Credit Network' or 'rcn''Ripple' or 'xrp''Salt' or 'salt''Siacoin' or 'sc''SnowGem' or 'sng''SolarCoin' or 'slr''SOLVE' or 'solve''Spendcoin' or 'spnd''Status' or 'snt''Stellar' or 'xlm''Storj' or 'storj''Storm' or 'storm''Swarm City' or 'swt''Synthetix Network' or 'snx''TEMCO' or 'temco''TenX' or 'pay''Tether' or 'usdt''Tezos' or 'xtz''Tron' or 'trx''TrueUSD' or 'tusd''VertCoin' or 'vtc''Viberate' or 'vib''VoteCoin' or 'vot''Waves' or 'waves''Wings' or 'wings''ZCash' or 'zec''ZClassic' or 'zcl''ZenCash' or 'zen''USDC' or 'zen''BNB' or 'bnb'var WAValidator = require('multicoin-address-validator');
var valid = WAValidator.validate('1KFzzGtDdnq5hrwxXGjwVnKzRbvf8WVxck', 'BTC');
if(valid)
console.log('This is a valid address');
else
console.log('Address INVALID');
// This will log 'This is a valid address' to the console.
var WAValidator = require('multicoin-address-validator');
var valid = WAValidator.validate('1KFzzGtDdnq5hrwxXGjwVnKzRbvf8WVxck', 'litecoin', 'testnet');
if(valid)
console.log('This is a valid address');
else
console.log('Address INVALID');
// As this is a invalid litecoin address 'Address INVALID' will be logged to console.
var WAValidator = require('multicoin-address-validator');
var currency = WAValidator.findCurrency('xrp');
if(currency)
console.log('This currency exists');
else
console.log('Currency INVALID');
// As this is a valid currency symbol 'This currency exists' will be logged to console.
var WAValidator = require('multicoin-address-validator');
var currency = WAValidator.findCurrency('random');
if(currency)
console.log('This currency exists');
else
console.log('Currency INVALID');
// As this is not a valid currency symbol 'Currency INVALID' will be logged to console.
<script src="wallet-address-validator.min.js"></script>
// WAValidator is exposed as a global (window.WAValidator)
var valid = WAValidator.validate('1KFzzGtDdnq5hrwxXGjwVnKzRbvf8WVxck', 'bitcoin');
if(valid)
alert('This is a valid address');
else
alert('Address INVALID');
// This should show a pop up with text 'This is a valid address'.
FAQs
crypto address validator for Bitcoin and other Altcoins.
We found that crypto-coin-address-validator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.