Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
cryptocurrency-address-validator
Advanced tools
Readme
Simple wallet address validator for validating Bitcoin and other altcoins addresses in Node.js and browser.
Forked from ognus/wallet-address-validator.
File size is ~201 KB (minifed).
npm install cryptocurrency-address-validator
<script src="crypto-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.
Returns address type (as 2 character hex string) if valid base58 address, otherwise null.
'auroracoin'
or 'AUR'
'beavercoin'
or 'BVC'
'biocoin'
or 'BIO'
'bitcoin'
or 'BTC'
'bitcoincash'
or 'BCH'
'bitcoingold'
or 'BTG'
'bitcoinprivate'
or 'BTCP'
'bitcoinz'
or 'BTCZ'
'callisto'
or 'CLO'
'cardano'
or 'ADA'
'dash'
or 'DASH'
'decred'
or 'DCR'
'digibyte'
or 'DGB'
'dogecoin'
or 'DOGE'
'eos'
or 'EOS'
'ethereum'
or 'ETH'
'ethereumclassic'
or 'ETC'
'etherzero'
or 'ETZ'
'freicoin'
or 'FRC'
'garlicoin'
or 'GRLC'
'hush'
or 'HUSH'
'komodo'
or 'KMD'
'iota'
or 'IOTA'
'icon'
or 'ICON'
'litecoin'
or 'LTC'
'megacoin'
or 'MEC'
'monero'
or 'XMR'
'namecoin'
or 'NMC'
'nano'
or 'NANO'
'neo'
or 'NEO'
'neogas'
or 'GAS'
'nem'
or 'nem'
'peercoin'
or 'PPC'
'primecoin'
or 'XPM'
'protoshares'
or 'PTS'
'qash'
or 'QASH'
'qtum'
or 'QTUM'
'railblocks'
or 'XRB'
'republicprotocol'
or 'REN'
'ripple'
or 'XRP'
'snowgem'
or 'SNG'
'stellarlumens'
or 'XLM'
'tronix'
or 'TRX'
'vertcoin'
or 'VTC'
'vechain'
or 'VeChain'
'votecoin'
or 'VOT'
'zcash'
or 'ZEC'
'zclassic'
or 'ZCL'
'zencash'
or 'ZEN'
var CAValidator = require('crypto-address-validator');
var valid = CAValidator.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 CAValidator = require('crypto-address-validator');
var valid = CAValidator.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.
<script src="crypto-address-validator.min.js"></script>
// CAValidator is exposed as a global (window.CAValidator)
var valid = CAValidator.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 wallet address validator for Bitcoin and other Altcoins.
The npm package cryptocurrency-address-validator receives a total of 507 weekly downloads. As such, cryptocurrency-address-validator popularity was classified as not popular.
We found that cryptocurrency-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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.