6#ifndef BITCOIN_OUTPUTTYPE_H
7#define BITCOIN_OUTPUTTYPE_H
std::variant< CNoDestination, PubKeyDestination, PKHash, ScriptHash, WitnessV0ScriptHash, WitnessV0KeyHash, WitnessV1Taproot, PayToAnchor, WitnessUnknown > CTxDestination
A txout script categorized into standard templates.
Serialized script, used inside transaction inputs and outputs.
std::optional< OutputType > ParseOutputType(const std::string &str)
std::optional< OutputType > OutputTypeFromDestination(const CTxDestination &dest)
Get the OutputType for a CTxDestination.
CTxDestination AddAndGetDestinationForScript(FlatSigningProvider &keystore, const CScript &script, OutputType)
Get a destination of the requested type (if possible) to the specified script.
const std::string & FormatOutputType(OutputType type)
static constexpr auto OUTPUT_TYPES