@abckey/address-helper
v0.1.3
Published
A Blockchain Encrypted Digital Currency Address Validator.
Downloads
10
Readme
address-helper
A Blockchain Encrypted Digital Currency Address Validator.
Install
npm i @abckey/address-helper
Usage
import AddressHelper from '@abckey/address-helper'
AddressHelper.test('12QeMLzSrB8XH8FvEzPMVoRxVAzTr5XM2y', 'btc', 'mainnet') // true
AddressHelper.test('0xc6d9d2cd449a754c494264e1809c50e34d64562b', 'eth') // true
AddressHelper.isSegwit('BC1QW508D6QEJXTDG4Y5R3ZARVARY0C5XW7KV8F3T4', 'bc') // true
AddressHelper.isSegwit('12KYrjTdVGjFMtaxERSk3gphreJ5US8aUP', 'bc') // false