{"id":15019031,"url":"https://github.com/ognus/wallet-address-validator","last_synced_at":"2025-09-29T15:31:52.863Z","repository":{"id":32693803,"uuid":"36283102","full_name":"ognus/wallet-address-validator","owner":"ognus","description":"Useful library for validation of Bitcoin, Litecoin, Ethereum and other cryptocoin addresses","archived":false,"fork":true,"pushed_at":"2023-05-05T13:59:22.000Z","size":444,"stargazers_count":262,"open_issues_count":30,"forks_count":129,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-05-17T21:03:05.624Z","etag":null,"topics":["altcoins","bitcoin","bitcoin-cash","bitcoin-private","cryptocurrency","dash","doge","ethereum","javascript","litecoin","monero","nano","nodejs","ripple","segwit","validator","vertcoin","wallet","zcash","zclassic"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"ryanralph/altcoin-address","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ognus.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":"2015-05-26T08:40:36.000Z","updated_at":"2024-04-30T21:36:02.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/ognus/wallet-address-validator","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ognus%2Fwallet-address-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ognus%2Fwallet-address-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ognus%2Fwallet-address-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ognus%2Fwallet-address-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ognus","download_url":"https://codeload.github.com/ognus/wallet-address-validator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":234407439,"owners_count":18827627,"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":["altcoins","bitcoin","bitcoin-cash","bitcoin-private","cryptocurrency","dash","doge","ethereum","javascript","litecoin","monero","nano","nodejs","ripple","segwit","validator","vertcoin","wallet","zcash","zclassic"],"created_at":"2024-09-24T19:52:48.104Z","updated_at":"2025-09-29T15:31:47.534Z","avatar_url":"https://github.com/ognus.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# wallet-address-validator\nSimple wallet address validator for validating Bitcoin and other altcoins addresses in **Node.js and browser**.\n\nForked from [ryanralph/altcoin-address](https://github.com/ryanralph/altcoin-address).\n\n**File size is ~22 kB (minifed and gzipped)**.\n\n## Installation\n\n### NPM\n```\nnpm install wallet-address-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\n* Auroracoin/AUR, `'auroracoin'` or `'AUR'`\n\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\n* Callisto/CLO, `'callisto'` or `'CLO'`\n\n* Dash, `'dash'` or `'DASH'`\n* Decred/DCR, `'decred'` or `'DCR'`\n* Digibyte/DGB, `'digibyte'` or `'DGB'`\n* Dogecoin/DOGE, `'dogecoin'` or `'DOGE'`\n\n* Ethereum/ETH, `'ethereum'` or `'ETH'`\n* EthereumClassic/ETH, `'ethereumclassic'` or `'ETC'`\n* EthereumZero/ETZ, `'etherzero'` or `'ETZ'`\n\n* Freicoin/FRC, `'freicoin'` or `'FRC'`\n\n* Garlicoin/GRLC, `'garlicoin'` or `'GRLC'`\n\n* Hush/HUSH, `'hush'` or `'HUSH'`\n\n* Komodo/KMD, `'komodo'` or `'KMD'`\n\n* Litecoin/LTC, `'litecoin'` or `'LTC'`\n\n* Megacoin/MEC, `'megacoin'` or `'MEC'`\n\n* Monero/XMR, `'monero'` or `'XMR'`\n\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\n* Peercoin/PPCoin/PPC, `'peercoin'` or `'PPC'`\n* Primecoin/XPM, `'primecoin'` or `'XPM'`\n* Protoshares/PTS, `'protoshares'` or `'PTS'`\n\n* Qtum/QTUM, `'qtum'` or `'QTUM'`\n\n* Raiblocks/XRB, `'raiblocks'` or `'XRB'`\n* Ripple/XRP, `'ripple'` or `'XRP'`\n\n* Snowgem/SNG, `'snowgem'` or `'SNG'`\n\n* Vertcoin/VTC, `'vertcoin'` or `'VTC'`\n\n* Votecoin/VTC, `'votecoin'` or `'VOT'`\n\n* Zcash/ZEC, `'zcash'` or `'ZEC'`\n\n* Zclassic/ZCL, `'zclassic'` or `'ZCL'`\n\n* ZenCash/ZEN, `'zencash'` or `'ZEN'`\n\n\n### Usage example\n\n#### Node\n```javascript\nvar WAValidator = require('wallet-address-validator');\n\nvar valid = WAValidator.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-address-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%2Fognus%2Fwallet-address-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fognus%2Fwallet-address-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fognus%2Fwallet-address-validator/lists"}