This chapter describes a helper function to take user input and convert it to a bitcoin-script-hash which is used by the Flowee APIs.
Where the name
Flowee is used, this is the variable which results from a call similar to:
const FloweeServices = require('floweejs'); var Flowee = new FloweeServices();
- P2PKH or P2SH type addresses.
- Bitcoincash style addresses (typically starting with q) or the legacy btc style (typically starting with 1).
- a string of hex characters signifying the bitcoin-cash-script hash.
Addresses that are for testnet have a different prefix, you can pass the prefix here.
The hash (32 bytes) over the entire output script. This can be used in the Flowee APIs.