Activity of ognus/wallet-address-validator repository

Active 🚀

Active contributions

Activity badge for ognus/wallet-address-validator repository

Why ognus/wallet-address-validator is active?

The result is based on ratio of number of commits and code additions from initial and final time ranges.

Initial time range – from 10 Feb, 2023 to 13 May, 2023

Final time range – from 11 Nov, 2023 to 10 Feb, 2024

Additions and deletions stats are not available for this repository due to GitHub API limitations.

Data calculated on 10 Feb, 2024

Summary of ognus/wallet-address-validator

The ognus/wallet-address-validator is a JavaScript-based utility that allows for the validation of Bitcoin and altcoin addresses on several different cryptocurrencies’ networks. It provides methods to validate an address, detect an address' type (segwit, bech32, p2sh) and detect the network (mainnet, testnet).

The supported cryptocurrencies are:

  • Bitcoin (BTC)
  • Bitcoin Testnet
  • Litecoin (LTC)
  • Dogecoin (DOGE)
  • Bech32 format coins (BTC, LTC, DOGE)

This script could be extremely useful for cryptocurrency applications or wallets to ensure that the addresses are valid before any transactions are made.

Its usage is simple and direct, after installation via npm, one could use it as follows:

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');

In the code snippet above, the method WAValidator.validate() takes two arguments, the address and the cryptocurrency, and returns if the address is valid or not.

To use the package the wallet-address-validator may need to be installed via npm, using the command npm install wallet-address-validator.

Please note that the specific details and capabilities may change as the state of the repository changes over time. Always refer to the official repository for the most accurate and up-to-date information.

Top 5 contributors