ONLINE HELP
 WINDEVWEBDEV AND WINDEV MOBILE

New WINDEV, WEBDEV and WINDEV Mobile 28 feature!
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadIOS WidgetApple WatchMac CatalystUniversal Windows 10 App
Others
Stored procedures
BitcoinValidAddress (Function)
In french: BitcoinAdresseValide
Checks whether a Bitcoin wallet address is valid.
Example
// Verify Bitcoin wallet address
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.
Component: wd280std.dll
Minimum version required
  • Version 28
This page is also available for…
Comments
Click [Add] to post a comment