跳到正文

正在自动登录…

← 返回项目列表

Nonco-Organization/multicoin-address-validator

地址验证

用于验证比特币、莱特币、以太坊等多种加密货币钱包地址的库,支持Node.js和浏览器环境。

AI 中文解读 · 根据仓库描述与 README 生成 · 2026/10/14 14:01:08 · 查看原文

普通JavaScript库与框架
累计 Stars
230
当前热度
未达当前门槛
仓库创建时间
打开 GitHub ↗

选用指南

AI 根据 README 整理 · 2026/10/14 14:01:08

使用方式

通过Node.js或浏览器使用,可调用validate方法验证地址,也可用findCurrency检查货币符号。

查看 README 依据
* Waves/waves `'Waves'` or `'waves'` * Wings/wings `'Wings'` or `'wings'` * ZCash/zec `'ZCash'` or `'zec'` * ZClassic/zcl `'ZClassic'` or `'zcl'` * ZenCash/zen `'ZenCash'` or `'zen'` ### Usage example #### Node ```javascript var WAValidator = require('multicoin-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. ``` ```javascript var WAValidator = require('multicoin-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. ``` ```javascript var WAValidator = require('multicoin-address-validator'); var currency = WAValidator.findCurrency('xrp'); if(currency) console.log('This currency exists'); else console.log('Currency INVALID'); // As this is a valid currency symbol 'This currency exists' will be logged to console. ```
```javascript var WAValidator = require('multicoin-address-validator'); var currency = WAValidator.findCurrency('random'); if(currency) console.log('This currency exists'); else console.log('Currency INVALID'); // As this is not a valid currency symbol 'Currency INVALID' will be logged to console. ``` #### Browser ```html <script src="wallet-address-validator.min.js"></script> ``` ```javascript // WAValidator is exposed as a global (window.WAValidator) var valid = WAValidator.validate('1KFzzGtDdnq5hrwxXGjwVnKzRbvf8WVxck', 'bitcoin'); if(valid)
部署要求

可在Node.js和浏览器中运行,无额外依赖。

查看 README 依据
# wallet-address-validator Simple wallet address validator for validating Bitcoin and other altcoins addresses in **Node.js and browser**. [![Build Status](https://travis-ci.org/christsim/multicoin-address-validator.svg?branch=master)](https://travis-ci.org/christsim/multicoin-address-validator) Forked from [ryanralph/altcoin-address](https://github.com/ryanralph/altcoin-address). **File size is ~17 kB (minifed and gzipped)**. ## Installation ### NPM ``` npm install multicoin-address-validator ``` ### Browser ```html <script src="wallet-address-validator.min.js"></script> ``` ## API

README

正在加载 README…

收录信息

仓库创建时间
2026/10/9 01:36:21
首次达标收录
2026/10/9 12:11:05
统计更新时间
2026/10/22 19:05:58

按创建时长与累计 Stars 判断等级。首次达标收录后,即使未达当前门槛仍保留;累计 Stars 和仓库状态会定期更新。确认只有 README 及辅助文件的仓库会停止公开。

模型评估

普通加权总分 3.8 / 5

新颖度
2.5
实用价值
4.9
成熟度
4.2
实质含量
3.7

由 Jev 模型根据仓库描述与 README 评估,2026/10/10 13:57:38 生成。评分仅供参考,不是代码、安全或许可证审查;热度等级另按创建时长与累计 Stars 计算。

仓库信息

最近推送
2026/10/9 02:09:23
许可证标识
MIT
Fork 数
0
当前状态
未归档

收录记录

按创建时长与累计 Stars 首次收录:热门
首次发现项目