Returns the output script that pays to an address.
A base58check or bech32/bech32m address.
Optional
The network the address must belong to. Defaults to Bitcoin.
The output script.
If the address is invalid or belongs to another network.
Returns the output script that pays to an address.