All Projects → ognus → wallet-address-validator

ognus / wallet-address-validator

Licence: MIT license
Useful library for validation of Bitcoin, Litecoin, Ethereum and other cryptocoin addresses

Projects that are alternatives of or similar to wallet-address-validator

cashuwallet
Cashu is a cryptocurrency wallet for smartphones. Be your own bank. Accept payments or spend crypto directly from your phone.
Stars: ✭ 35 (-85.42%)
Mutual labels:  ripple, nano, dash, wallet, zcash
crypto-trader
Cryptocurrency investing using Dollar Cost Averaging (not limited to dollar)
Stars: ✭ 47 (-80.42%)
Mutual labels:  dash, zcash, monero, litecoin
Crypto-Resources
Resources for trading Bitcoin and Altcoins
Stars: ✭ 22 (-90.83%)
Mutual labels:  zcash, monero, litecoin, altcoins
MoneroMixer
The easiest way to use Monero to anonymously exchange and properly mix XMR, BTC, LTC, ETH, BCH, & 100+ other coins on Tails OS or Whonix.
Stars: ✭ 57 (-76.25%)
Mutual labels:  dash, monero, litecoin, bitcoin-cash
CryptoCurrency
Page to keep track of value & profits of a portfolio of cryptocurrency (based on Coinmarketcap, Bitfinex and Binance)
Stars: ✭ 27 (-88.75%)
Mutual labels:  ripple, monero, litecoin, altcoins
Cryptocurrency Cli
💰 Cryptocurrency Portfolio On The Command Line 💰
Stars: ✭ 99 (-58.75%)
Mutual labels:  ripple, dash, monero, litecoin
Essentia-iOS
All in One Blockchain solution
Stars: ✭ 50 (-79.17%)
Mutual labels:  dash, litecoin, bitcoin-cash
bitcoin-kit-android
Comprehensive Bitcoin development library for iOS, implemented on Swift. SPV wallet implementation for Bitcoin, Bitcoin Cash, Litecoin and Dash blockchains. Fully compliant with existing standards and BIPs.
Stars: ✭ 102 (-57.5%)
Mutual labels:  dash, litecoin, bitcoin-cash
paper-wallet-generator
Paper Wallet Generator for Bitcoin & Altcoins
Stars: ✭ 35 (-85.42%)
Mutual labels:  dash, doge, altcoins
Edge React Gui
Edge Wallet React Native GUI for iOS and Android
Stars: ✭ 303 (+26.25%)
Mutual labels:  dash, wallet, litecoin
Cryptocurrency Dashboard
Crypto Currency Dashboard Using Twitter 🐦 And Coinmarketcap 🚀 API
Stars: ✭ 54 (-77.5%)
Mutual labels:  dash, monero, litecoin
Moneda Cli
Command line to track cryptocurrency prices
Stars: ✭ 114 (-52.5%)
Mutual labels:  ripple, dash, litecoin
scpx-wallet
Scoop Wallet: Core open-source, multi-asset & cross-platform CLI
Stars: ✭ 18 (-92.5%)
Mutual labels:  dash, wallet, litecoin
adequate crypto address
A Ruby Library for dealing with validation cryptocurrency addresses
Stars: ✭ 18 (-92.5%)
Mutual labels:  ripple, dash, zcash
Valets
Command line wallets generator (Bitcoin, Bitcoin cash, Ethereum, Ethereum classic, Dash, Zcash, Dogecoin, Litecoin, Navcoin, Vertcoin, Reddcoin, Emercoin)
Stars: ✭ 46 (-80.83%)
Mutual labels:  dash, zcash, monero
node-bitstamp
bitstamp REST and WS API Node.js client 💵
Stars: ✭ 58 (-75.83%)
Mutual labels:  ripple, litecoin
profbit
Track your Coinbase profits!
Stars: ✭ 37 (-84.58%)
Mutual labels:  litecoin, bitcoin-cash
algo-coin
Python library for algorithmic trading cryptocurrencies across multiple exchanges
Stars: ✭ 386 (+60.83%)
Mutual labels:  zcash, bitcoin-cash
Nault
⚡ The most advanced Nano wallet with focus on security, speed and robustness
Stars: ✭ 228 (-5%)
Mutual labels:  nano, wallet
Crypto-Wallet
Open source SHA-512 loginless bitcoin wallet
Stars: ✭ 24 (-90%)
Mutual labels:  wallet, litecoin

wallet-address-validator

Simple wallet address validator for validating Bitcoin and other altcoins addresses in Node.js and browser.

Forked from ryanralph/altcoin-address.

File size is ~22 kB (minifed and gzipped).

Installation

NPM

npm install wallet-address-validator

Browser

<script src="wallet-address-validator.min.js"></script>

API

validate (address [, currency = 'bitcoin'[, networkType = 'prod']])
Parameters
  • address - Wallet address to validate.
  • currency - Optional. Currency name or symbol, e.g. 'bitcoin' (default), 'litecoin' or 'LTC'
  • networkType - Optional. Use '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.

Supported crypto currencies

  • Auroracoin/AUR, 'auroracoin' or 'AUR'

  • Bankex/BKX, 'bankex' or 'BKX'

  • BeaverCoin/BVC, 'beavercoin' or 'BVC'

  • Biocoin/BIO, 'biocoin' or 'BIO'

  • Bitcoin/BTC, 'bitcoin' or 'BTC'

  • BitcoinCash/BCH, 'bitcoincash' or 'BCH'

  • BitcoinGold/BTG, 'bitcoingold' or 'BTG'

  • BitcoinPrivate/BTCP, 'bitcoinprivate' or 'BTCP'

  • BitcoinZ/BTCZ, 'bitcoinz' or 'BTCZ'

  • Callisto/CLO, 'callisto' or 'CLO'

  • Dash, 'dash' or 'DASH'

  • Decred/DCR, 'decred' or 'DCR'

  • Digibyte/DGB, 'digibyte' or 'DGB'

  • Dogecoin/DOGE, 'dogecoin' or 'DOGE'

  • Ethereum/ETH, 'ethereum' or 'ETH'

  • EthereumClassic/ETH, 'ethereumclassic' or 'ETC'

  • EthereumZero/ETZ, 'etherzero' or 'ETZ'

  • Freicoin/FRC, 'freicoin' or 'FRC'

  • Garlicoin/GRLC, 'garlicoin' or 'GRLC'

  • Hush/HUSH, 'hush' or 'HUSH'

  • Komodo/KMD, 'komodo' or 'KMD'

  • Litecoin/LTC, 'litecoin' or 'LTC'

  • Megacoin/MEC, 'megacoin' or 'MEC'

  • Monero/XMR, 'monero' or 'XMR'

  • Namecoin/NMC, 'namecoin' or 'NMC'

  • Nano/NANO, 'nano' or 'NANO'

  • NEO/NEO, 'NEO' or 'NEO'

  • NeoGas/GAS, 'neogas' or 'GAS'

  • Peercoin/PPCoin/PPC, 'peercoin' or 'PPC'

  • Primecoin/XPM, 'primecoin' or 'XPM'

  • Protoshares/PTS, 'protoshares' or 'PTS'

  • Qtum/QTUM, 'qtum' or 'QTUM'

  • Raiblocks/XRB, 'raiblocks' or 'XRB'

  • Ripple/XRP, 'ripple' or 'XRP'

  • Snowgem/SNG, 'snowgem' or 'SNG'

  • Vertcoin/VTC, 'vertcoin' or 'VTC'

  • Votecoin/VTC, 'votecoin' or 'VOT'

  • Zcash/ZEC, 'zcash' or 'ZEC'

  • Zclassic/ZCL, 'zclassic' or 'ZCL'

  • ZenCash/ZEN, 'zencash' or 'ZEN'

Usage example

Node

var WAValidator = require('wallet-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('wallet-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.

Browser

<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'.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].