{"id":15019045,"url":"https://github.com/technologiespro/wallet-validator","last_synced_at":"2025-09-29T15:32:03.586Z","repository":{"id":41450004,"uuid":"185434951","full_name":"technologiespro/wallet-validator","owner":"technologiespro","description":"Useful library for validation of Bitcoin, Litecoin, Ethereum and other cryptocoin addresses","archived":false,"fork":true,"pushed_at":"2024-01-26T18:11:42.000Z","size":687,"stargazers_count":22,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-09-17T19:25:44.087Z","etag":null,"topics":["blockchain","btc","cryptocurrency","doge","eth","ltc","smartholdem","sth","validator","wallet"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ognus/wallet-address-validator","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/technologiespro.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-05-07T15:57:05.000Z","updated_at":"2024-04-06T18:55:23.000Z","dependencies_parsed_at":"2023-02-01T06:01:34.084Z","dependency_job_id":null,"html_url":"https://github.com/technologiespro/wallet-validator","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technologiespro%2Fwallet-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technologiespro%2Fwallet-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technologiespro%2Fwallet-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/technologiespro%2Fwallet-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/technologiespro","download_url":"https://codeload.github.com/technologiespro/wallet-validator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219865485,"owners_count":16554151,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["blockchain","btc","cryptocurrency","doge","eth","ltc","smartholdem","sth","validator","wallet"],"created_at":"2024-09-24T19:52:49.509Z","updated_at":"2025-09-29T15:31:58.273Z","avatar_url":"https://github.com/technologiespro.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wallet-validator\n\nFast and convenient utility for checking the validity of coin addresses without access to the blockchain.\n\nSimple wallet address validator for validating Bitcoin and other altcoins addresses in **Node.js and browser**.\n\n**File size is ~100 kB (minifed and gzipped)**.\n\n## Installation\n\n### NPM\n```\nnpm install --save wallet-validator\n```\n\n### Browser\n```html\n\u003cscript src=\"wallet-address-validator.min.js\"\u003e\u003c/script\u003e\n```\n\n## API\n\n##### validate (address [, currency = 'bitcoin'[, networkType = 'prod']])\n\n###### Parameters\n* address - Wallet address to validate.\n* currency - Optional. Currency name or symbol, e.g. `'bitcoin'` (default), `'litecoin'` or `'LTC'`\n* networkType - Optional. Use `'prod'` (default) to enforce standard address, `'testnet'` to enforce testnet address and `'both'` to enforce nothing.\n\n\u003e Returns true if the address (string) is a valid wallet address for the crypto currency specified, see below for supported currencies.\n\n### Supported crypto currencies\n* SmartHoldem/STH, `'smartholdem'` or `'STH'`\n* Auroracoin/AUR, `'auroracoin'` or `'AUR'`\n* Bankex/BKX, `'bankex'` or `'BKX'`\n* BeaverCoin/BVC, `'beavercoin'` or `'BVC'`\n* Biocoin/BIO, `'biocoin'` or `'BIO'`\n* Bitcoin/BTC, `'bitcoin'` or `'BTC'`\n* BitcoinCash/BCH, `'bitcoincash'` or `'BCH'`\n* BitcoinGold/BTG, `'bitcoingold'` or `'BTG'`\n* BitcoinPrivate/BTCP, `'bitcoinprivate'` or `'BTCP'`\n* BitcoinZ/BTCZ, `'bitcoinz'` or `'BTCZ'`\n* Callisto/CLO, `'callisto'` or `'CLO'`\n* Dash, `'dash'` or `'DASH'`\n* Decred/DCR, `'decred'` or `'DCR'`\n* Digibyte/DGB, `'digibyte'` or `'DGB'`\n* Dogecoin/DOGE, `'dogecoin'` or `'DOGE'`\n* Ethereum/ETH, `'ethereum'` or `'ETH'`\n* EthereumClassic/ETH, `'ethereumclassic'` or `'ETC'`\n* EthereumZero/ETZ, `'etherzero'` or `'ETZ'`\n* Freicoin/FRC, `'freicoin'` or `'FRC'`\n* Garlicoin/GRLC, `'garlicoin'` or `'GRLC'`\n* Hush/HUSH, `'hush'` or `'HUSH'`\n* Komodo/KMD, `'komodo'` or `'KMD'`\n* Litecoin/LTC, `'litecoin'` or `'LTC'`\n* Megacoin/MEC, `'megacoin'` or `'MEC'`\n* Monero/XMR, `'monero'` or `'XMR'`\n* Namecoin/NMC, `'namecoin'` or `'NMC'`\n* Nano/NANO, `'nano'` or `'NANO'`\n* NEO/NEO, `'NEO'` or `'NEO'`\n* NeoGas/GAS, `'neogas'` or `'GAS'`\n* Peercoin/PPCoin/PPC, `'peercoin'` or `'PPC'`\n* Primecoin/XPM, `'primecoin'` or `'XPM'`\n* Protoshares/PTS, `'protoshares'` or `'PTS'`\n* Qtum/QTUM, `'qtum'` or `'QTUM'`\n* Raiblocks/XRB, `'raiblocks'` or `'XRB'`\n* Ripple/XRP, `'ripple'` or `'XRP'`\n* Snowgem/SNG, `'snowgem'` or `'SNG'`\n* Vertcoin/VTC, `'vertcoin'` or `'VTC'`\n* Votecoin/VTC, `'votecoin'` or `'VOT'`\n* Zcash/ZEC, `'zcash'` or `'ZEC'`\n* Zclassic/ZCL, `'zclassic'` or `'ZCL'`\n* ZenCash/ZEN, `'zencash'` or `'ZEN'`\n* PostCoin/POST, `'postcoin'` or `'POST'`\n* Nobtcoin/NOBT, `'nobtcoin'` or `'NOBT'`\n* VeriCoin/VRC, `'vericoin'` or `'VRC'`\n* VeriumReserve/VRM, `'verium'` or `'VRM'`\n* Smilo/XSM, `'smilo'` or `'XSM'`\n* ZENZO/ZNZ, `'zenzo'` or `'ZNZ'`\n* Universe/UNI, `'universe'` or `'UNI'`\n* Spectrecoin/XSPEC, `'spectre'` or `'XSPEC'`\n* 42-coin/42, `'42coin'` or `'42'`\n* SteepCoin/STEEP, `'steep'` or `'STEEP'`\n* EverGreenCoin/EGC, `'evergreen'` or `'EGC'`\n* BitConnectX/BCCX, `'bitconnectx'` or `'BCCX'`\n* GuapCoin/GUAP, `'guapcoin'` or `'GUAP'`\n* Ravencoin/RVN, `'ravencoin'` or `'RVN'`\n* Stellar/XLM, `'stellar'` or `'XLM'`\n* Cardano/ADA, `'cardano' or 'ADA'`\n* VeChain/VET, `'vechain'` or `'VET'`\n* TRON/TRX, `'tron'` or `'TRX'`\n* PRUX-Coin/PRUX, `'pruxcoin'` or `'PRUX'`\n* DeepOnion/ONION, `'deeponion'` or `'ONION'`\n* Bitcoinrand/BZAR, `'bitcoinrand'` or `'BZAR'`\n* Emercoin/EMC, `'emercoin'` or `'EMC'`\n* HiveCoin/HVQ, `'hivecoin'` or `'HVQ'`\n* BinanceCoin/BNB, `'binancecoin'` or `'BNB'`\n* PIVX/PIVX, `'pivx'` or `'PIVX'`\n* Raptoreum/RTM, `'rtm'` or `'RTM'`\n* ReddCoin/RDD, `'rdd'` or `'RDD'`\n* Flux/FLUX, `'flux'` or `'FLUX'`\n* BlockchainCoinX/XCCX, `'xccx'` or `'XCCX'`\n* Radiant/RXD, `'rxd'` or `'RXD'`\n* Pepecoin/PEP, `'pep'` or `'PEP'`\n\n### Usage example\n\n#### Node\n```javascript\nvar Validator = require('wallet-validator');\n\nvar valid = Validator.validate('1KFzzGtDdnq5hrwxXGjwVnKzRbvf8WVxck', 'BTC');\nif(valid)\n\tconsole.log('This is a valid address');\nelse\n\tconsole.log('Address INVALID');\n\n// This will log 'This is a valid address' to the console.\n```\n\n```javascript\nvar WAValidator = require('wallet-validator');\n\nvar valid = WAValidator.validate('1KFzzGtDdnq5hrwxXGjwVnKzRbvf8WVxck', 'litecoin', 'testnet');\nif(valid)\n      console.log('This is a valid address');\nelse\n      console.log('Address INVALID');\n\n// As this is a invalid litecoin address 'Address INVALID' will be logged to console.\n```\n\n#### Browser\n```html\n\u003cscript src=\"wallet-address-validator.min.js\"\u003e\u003c/script\u003e\n```\n\n```javascript\n// WAValidator is exposed as a global (window.WAValidator)\nvar valid = WAValidator.validate('1KFzzGtDdnq5hrwxXGjwVnKzRbvf8WVxck', 'bitcoin');\nif(valid)\n    alert('This is a valid address');\nelse\n    alert('Address INVALID');\n\n// This should show a pop up with text 'This is a valid address'.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnologiespro%2Fwallet-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechnologiespro%2Fwallet-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechnologiespro%2Fwallet-validator/lists"}