Creates an output script for a given Bitcoin address.
This function validates the provided address and creates an appropriate
output script based on the address type (P2PKH, P2SH, P2WPKH,P2TR or P2WSH).
It supports both mainnet, testnet and regtest addresses.
Parameters
destinationAddress: string
The Bitcoin address to create an output script for.
Creates an output script for a given Bitcoin address.
This function validates the provided address and creates an appropriate output script based on the address type (P2PKH, P2SH, P2WPKH,P2TR or P2WSH). It supports both mainnet, testnet and regtest addresses.