{"repo":"ruigomeseu/bitcoin-address-validation","free":true,"listed":false,"github":"https://github.com/ruigomeseu/bitcoin-address-validation","clone":"git clone https://github.com/ruigomeseu/bitcoin-address-validation.git","description":"Validate Bitcoin addresses - P2WSH, P2WPKH, P2PKH, P2SH and P2TR","language":"TypeScript","stars":125,"topics":["bitcoin","bitcoin-address","javascript","typescript","validation"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"bitcoin-address-validation Validate Bitcoin addresses - P2WSH, P2WPKH, P2PKH, P2SH and P2TR. Installation Add bitcoin-address-validation to your Javascript project dependencies using Yarn: Or NPM: Usage Importing Validating addresses validate(address) returns true for valid Bitcoin addresses or false for invalid Bitcoin addresses. Network validation validate(address, network) allows you to validate whether an address is valid and belongs to network . Address information getAddressInfo(address) parses the input address and returns information about its type and network. If the input address is invalid, an exception will be thrown. Networks This library supports the following Bitcoin networks: mainnet , testnet , regtest and signet . signet addresses will always be recognized as testnet addresses. Non-bech32 regtest addresses will be recognized as testnet addresses. Casting testnet addresses to regtest or signet You can use the options parameter to cast testnet addresses to regtest or signet . TypeScript support If you're using TypeScript, the following types are provided with this library: TypeScript usage Author Rui Gomes https://ruigomes.me License The MIT License (MIT). Please see LICENSE file for more information.","default_branch":null,"files":null,"tree":[],"storefront":"/r/ruigomeseu","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ruigomeseu/bitcoin-address-validation/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}