|
|
|
|
|
BitcoinValidAddress (Function) In french: BitcoinAdresseValide Checks whether a Bitcoin wallet address is valid.
IF NOT BitcoinValidAddress(EDT_Address) THEN
Error()
END
Syntax
<Result> = BitcoinValidAddress(<Address>)
<Result>: Boolean - True if the address is valid,
- False otherwise. The ErrorOccurred variable is set to True and the corresponding error message is returned by ErrorInfo.
<Address>: Character string Address of the Bitcoin wallet to be verified. This address can be of any type:- P2PKH (Pay To Public Key Hash, starts with "1"),
- P2SH (Pay To Script Hash, starts with "3"),
- P2WSH (Pay To Witness Script Hash, starts with "3"),
- Segwit v0 or P2WPKH (Pay To Witness Public Key Hash, starts with "bc1q"),
- Segwit v1 or P2TR (Pay to Taproot, starts with "bc1p").
Remarks - This function only checks the validity of a Bitcoin wallet address, not the validity of a Bitcoin wallet private or public key.
- The function does not check whether the address corresponds to an existing Bitcoin wallet.
This page is also available for…
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|