6 #ifndef BITCOIN_OUTPUTTYPE_H 7 #define BITCOIN_OUTPUTTYPE_H 53 #endif // BITCOIN_OUTPUTTYPE_H
std::vector< CTxDestination > GetAllDestinationsForKey(const CPubKey &key)
Get all destinations (potentially) supported by the wallet for the given key.
bool ParseOutputType(const std::string &str, OutputType &output_type)
static constexpr auto OUTPUT_TYPES
CTxDestination GetDestinationForKey(const CPubKey &key, OutputType)
Get a destination of the requested type (if possible) to the specified key.
An encapsulated public key.
Fillable signing provider that keeps keys in an address->secret map.
std::variant< CNoDestination, PKHash, ScriptHash, WitnessV0ScriptHash, WitnessV0KeyHash, WitnessV1Taproot, WitnessUnknown > CTxDestination
A txout script template with a specific destination.
CTxDestination AddAndGetDestinationForScript(FillableSigningProvider &keystore, const CScript &script, OutputType)
Get a destination of the requested type (if possible) to the specified script.
const std::string & FormatOutputType(OutputType type)
Serialized script, used inside transaction inputs and outputs.
std::optional< OutputType > OutputTypeFromDestination(const CTxDestination &dest)
Get the OutputType for a CTxDestination.