A txout script categorized into standard templates. * CNoDestination: Optionally a script, no corresponding address. * PubKeyDestination: TxoutType::PUBKEY (P2PK), no corresponding address * PKHash: TxoutType::PUBKEYHASH destination (P2PKH address) * ScriptHash: TxoutType::SCRIPTHASH destination (P2SH address) * WitnessV0ScriptHash: TxoutType::WITNESS_V0_SCRIPTHASH destination (P2WSH address) * WitnessV0KeyHash: TxoutType::WITNESS_V0_KEYHASH destination (P2WPKH address) * WitnessV1Taproot: TxoutType::WITNESS_V1_TAPROOT destination (P2TR address) * PayToAnchor: TxoutType::ANCHOR destination (P2A address) * WitnessUnknown: TxoutType::WITNESS_UNKNOWN destination (P2W??? address) A CTxDestination is the internal data type encoded in a bitcoin address
Declared in <addresstype.h>
using CTxDestination = std::variant<CNoDestination, PubKeyDestination, PKHash, ScriptHash, WitnessV0ScriptHash, WitnessV0KeyHash, WitnessV1Taproot, PayToAnchor, WitnessUnknown>;