Constructors
Methods
Static
isP2PKHOrP2SH
- isP2PKHOrP2SH(addy, network): boolean
Parameters
- addy: string
- network: Network
Returns boolean
- True if the address is a valid P2PKH or P2SH address, false otherwise.
Static
isP2WPKHAddress
- isP2WPKHAddress(inAddress, network): boolean
Parameters
- inAddress: string
- network: Network
Returns boolean
- True if the address is a valid P2PKH address, false otherwise.
Static
isValidP2TRAddress
- isValidP2TRAddress(inAddress, network): boolean
Parameters
- inAddress: string
- network: Network
Returns boolean
- True if the address is a valid P2PKH address, false otherwise.
Static
isValidPublicKey
- isValidPublicKey(input, network): boolean
Parameters
- input: string
- network: Network
Returns boolean
- True if the input is a valid public key, false otherwise.
Static
validateBitcoinAddress
- validateBitcoinAddress(addy, network): null | AddressTypes
Parameters
- addy: string
- network: Network
- The type of the valid Bitcoin address, or null if invalid.
Checks if the given address is a valid P2PKH or P2SH address.