{"id":20020114,"url":"https://github.com/wonism/coin-address-validator","last_synced_at":"2025-05-04T23:32:38.537Z","repository":{"id":55720949,"uuid":"130809071","full_name":"wonism/coin-address-validator","owner":"wonism","description":null,"archived":false,"fork":false,"pushed_at":"2018-07-09T12:20:32.000Z","size":161,"stargazers_count":6,"open_issues_count":2,"forks_count":5,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-10-08T22:21:00.509Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/wonism.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-04-24T06:48:08.000Z","updated_at":"2021-06-15T17:05:45.000Z","dependencies_parsed_at":"2022-08-15T06:31:36.879Z","dependency_job_id":null,"html_url":"https://github.com/wonism/coin-address-validator","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wonism%2Fcoin-address-validator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wonism%2Fcoin-address-validator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wonism%2Fcoin-address-validator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/wonism%2Fcoin-address-validator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/wonism","download_url":"https://codeload.github.com/wonism/coin-address-validator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224175776,"owners_count":17268389,"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":[],"created_at":"2024-11-13T08:29:54.282Z","updated_at":"2024-11-13T08:29:54.914Z","avatar_url":"https://github.com/wonism.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Coin Address Validator\n\n\u003e To validate crypto currency's wallet address on Node.js and Browser even React Native.\n\u003e And It has no dependencies with Node.js core modules.\n\nThis project was created with reference to [wallet-address-validator](https://github.com/ognus/wallet-address-validator).\n\n## How to use\n```js\nimport coinAddressValidator from 'coin-address-validator';\n\nconst isBtcAddress  = coinAddressValidator.validate('1Gz3SRHzmzV8NwhUe5LQkTy5ysH1aqevAP', 'btc', 'prod');\nconst isEthAddress = coinAddressValidator.validate('0x9e093a64da766c6f1400158db028cc9946b8ae1f', 'eth', 'prod');\nconst isXrpAddress = coinAddressValidator.validate('rh5yrZSwXTAXdiHyc7xiyZ95FdjsfYWmSY', 'xrp', 'prod');\nconst isLtcAddress = coinAddressValidator.validate('LRitYWYuMvnJyrms4jVTiAj5rcTVomHvPx', 'ltc', 'prod');\n```\n\n### Methods\n__validate(address, [, currency = 'bitcoin'[, networkType = 'prod']])__\n\ntype of return value is boolean. (`true` or `false`)\n\n- address : Wallet address to validate\n- currency : Optional. Currency name or symbol\n- networkType: Optional. Use `prod` to enforce standard address. or Use `testnet` to enforce testnet address. Use `both` for both of them)\n\n__getAddressType(address)__\n\ntype of return value is string (if valid base58 addrses) or null\n- address: Wallet address\n\n## Supported Currencies\n* Auroracoin/AUR, `'auroracoin'` or `'AUR'`\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* 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* 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","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwonism%2Fcoin-address-validator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwonism%2Fcoin-address-validator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwonism%2Fcoin-address-validator/lists"}