Post
Topic
Board Bitcoin Discussion
Merits 1 from 1 user
Re: Would it be possible to develop crypto address validation technology?
by
TravelMug
on 26/08/2020, 04:34:09 UTC
⭐ Merited by vapourminer (1)
I remember this project, https://github.com/Swyftx/crypto-address-validator

It seems that it was being updated, but I can't vouch for it as I haven't try or used it.

API

Quote
validate (address [, currency = 'bitcoin'[, networkType = 'prod' [, addressType = ['all']]])
Parameters

    address - Wallet address to validate.
    currency - Optional. Currency name or symbol, e.g. 'bitcoin' (default), 'litecoin' or 'LTC'
    networkType - Optional. Use 'prod' (default) to enforce standard address, 'testnet' to enforce testnet address and 'both' to enforce nothing.
    addressType - Optional. Specifies what version of the address should be validated. Defaults to 'legacy', but can be changed on a per asset basis.

    Returns true if the address (string) is a valid wallet address for the crypto currency specified, see below for supported currencies.