Constructors
Methods
StaticisP2PKHOrP2SH
- isP2PKHOrP2SH(addy, network): boolean
Parameters
- addy: string
- network: Network
Returns boolean
- True if the address is a valid P2PKH or P2SH address, false otherwise.
StaticisP2WPKHAddress
- isP2WPKHAddress(inAddress, network): boolean
Parameters
- inAddress: string
- network: Network
Returns boolean
- True if the address is a valid P2PKH address, false otherwise.
StaticisValidP2TRAddress
- isValidP2TRAddress(inAddress, network): boolean
Parameters
- inAddress: string
- network: Network
Returns boolean
- True if the address is a valid P2PKH address, false otherwise.
StaticisValidPublicKey
- isValidPublicKey(input, network): boolean
Parameters
- input: string
- network: Network
Returns boolean
- True if the input is a valid public key, false otherwise.
StaticvalidateBitcoinAddress
- 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.