Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
cryptocurrency-address-validator
Advanced tools
Crypto wallet 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 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 204 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.